Skip to content

Commit

Permalink
Using strategy to build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Jan 30, 2024
1 parent 3dd2842 commit cc42855
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '6.0.x', '7.0.x', '8.0.x' ]

steps:
- uses: actions/checkout@v3

- name: Setup .NET Framework
- name: Setup .NET ${{ matrix.dotnet }} Framework
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
dotnet-version: ${{ matrix.dotnet }}

- name: Install SQLite Spatial
run: sudo apt-get install -y libsqlite3-mod-spatialite
Expand All @@ -35,10 +34,10 @@ jobs:
- name: Test
run: dotnet test --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

- name: Collect to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Collect to Codecov
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}

- name: Pack NuGet
run: dotnet pack --version-suffix $GITHUB_RUN_ID -c Release -o ./nuget
Expand Down

0 comments on commit cc42855

Please sign in to comment.