Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,26 @@ jobs:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
dotnet-version: ['8.0.x', '9.0.x', '10.0.x']

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET ${{ matrix.dotnet-version }}
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: |
8.0.x
9.0.x
10.0.x
cache: true
cache-dependency-path: "**/packages.lock.json"

- name: Restore
run: dotnet restore --locked-mode
run: dotnet restore .\Lexepars.sln --locked-mode

- name: Test
run: dotnet test -c Release --no-restore
run: dotnet test .\Lexepars.sln -c Release --no-restore

pack-and-upload:
needs: test
Expand All @@ -49,11 +50,8 @@ jobs:
cache: true
cache-dependency-path: "**/packages.lock.json"

- name: Restore
run: dotnet restore --locked-mode

- name: Pack
run: dotnet pack -c Release --no-restore -o ./artifacts
run: dotnet pack .\Lexepars.sln -c Release -o ./artifacts
-p:IncludeSymbols=true
-p:SymbolPackageFormat=snupkg

Expand Down
Loading