workflow fixes

This commit is contained in:
Zachary Eisinger 2020-04-17 10:07:55 -07:00
parent 9cdfbc3e23
commit a7ad3746b8
2 changed files with 7 additions and 2 deletions

View File

@ -32,13 +32,18 @@ jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clear tool cache
if: runner.os != 'windows'
run: rm -rf $RUNNER_TOOL_CACHE/*
- name: Clear tool cache (Windows)
if: runner.os == 'windows'
run: Remove-Item $RUNNER_TOOL_CACHE/* -Recurse -Force -ErrorAction SilentlyContinue
- name: Setup dotnet 3.1.201
uses: ./
with:
@ -78,7 +83,7 @@ jobs:
runs-on: ubuntu-latest
env:
https_proxy: http://no-such-proxy:3128
no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org
no_proxy: github.com,dotnetcli.blob.core.windows.net,download.visualstudio.microsoft.com,api.nuget.org,dotnetcli.azureedge.net
steps:
- name: Checkout
uses: actions/checkout@v2

View File

@ -14,7 +14,7 @@ echo "Building sample csproj"
dotnet build __tests__/sample-csproj/ --no-cache || exit 1
echo "Testing compiled app"
sample_output="$(__tests__/sample-csproj/bin/Debug/netcoreapp3.0/sample)"
sample_output="$(__tests__/sample-csproj/bin/Debug/netcoreapp3.0/sample.dll)"
echo "Sample output: $sample_output"
if [ -z "$(echo $sample_output | grep Hello)" ]; then
echo "Unexpected output"