Skip to content

Commit

Permalink
ci: add matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jan 5, 2023
1 parent 38ae10a commit 4fc71a0
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ permissions:

jobs:
build:
runs-on: windows-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0

- name: Setup .NET
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a # v3.0.3
with:
dotnet-version: |
3.1.x
6.0.x

- uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2
with:
Expand All @@ -40,3 +37,9 @@ jobs:

- name: Test
run: dotnet test --no-build --verbosity normal

- name: Codecov
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
if: always() && matrix.os == 'ubuntu-latest'
with:
files: '*.cobertura.xml'

0 comments on commit 4fc71a0

Please sign in to comment.