Browse Source

Fix options naming

af/merge-core
James Jackson-South 6 years ago
parent
commit
42a7f0c812
  1. 18
      .github/workflows/build-and-test.yml

18
.github/workflows/build-and-test.yml

@ -14,7 +14,7 @@ jobs:
Build: Build:
strategy: strategy:
matrix: matrix:
options: opts:
# - os: ubuntu-latest # - os: ubuntu-latest
# framework: netcoreapp2.1 # framework: netcoreapp2.1
# runtime: linux-x64 # runtime: linux-x64
@ -32,7 +32,7 @@ jobs:
runtime: win-x86 runtime: win-x86
cover: False cover: False
runs-on: ${{ matrix.options.os }} runs-on: ${{ matrix.opts.os }}
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
@ -52,21 +52,19 @@ jobs:
shell: pwsh shell: pwsh
run: | run: |
$DebugPreference = "Continue" $DebugPreference = "Continue"
./build.ps1 "${{matrix.options.framework}}" ./build.ps1 "${{matrix.opts.framework}}"
- name: Test no Coverage - name: Test no Coverage
if: matrix.options.cover != 'True' if: matrix.opts.cover != True
shell: pwsh run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opts.framework}}" -r "${{matrix.opts.runtime}}" --no-build --filter Sandbox
run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opt.framework}}" -r "${{matrix.opt.runtime}}" --no-build --filter Sandbox
- name: Test with Coverage - name: Test with Coverage
if: matrix.options.cover == 'True' if: matrix.opts.cover == True
shell: pwsh run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opts.framework}} -r "${{matrix.opts.runtime}}" --no-build --filter Sandbox /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opt.framework}}" -r "${{matrix.opt.runtime}}" --no-build --filter Sandbox /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Update Codecov - name: Update Codecov
uses: iansu/codecov-action-node@v1.0.0 uses: iansu/codecov-action-node@v1.0.0
if: matrix.options.cover == 'True' if: matrix.opts.cover == True
with: with:
token: ${{secrets.CODECOV_TOKEN}} token: ${{secrets.CODECOV_TOKEN}}
file: "coverage.xml" file: "coverage.xml"

Loading…
Cancel
Save