mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 23:50:19 +00:00
workflow fixes
This commit is contained in:
parent
9cdfbc3e23
commit
a7ad3746b8
7
.github/workflows/workflow.yml
vendored
7
.github/workflows/workflow.yml
vendored
@ -32,13 +32,18 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.operating-system }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Clear tool cache
|
- name: Clear tool cache
|
||||||
|
if: runner.os != 'windows'
|
||||||
run: rm -rf $RUNNER_TOOL_CACHE/*
|
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
|
- name: Setup dotnet 3.1.201
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@ -78,7 +83,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
https_proxy: http://no-such-proxy:3128
|
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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -14,7 +14,7 @@ echo "Building sample csproj"
|
|||||||
dotnet build __tests__/sample-csproj/ --no-cache || exit 1
|
dotnet build __tests__/sample-csproj/ --no-cache || exit 1
|
||||||
|
|
||||||
echo "Testing compiled app"
|
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"
|
echo "Sample output: $sample_output"
|
||||||
if [ -z "$(echo $sample_output | grep Hello)" ]; then
|
if [ -z "$(echo $sample_output | grep Hello)" ]; then
|
||||||
echo "Unexpected output"
|
echo "Unexpected output"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user