diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index d6941dc..d5dd299 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -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 @@ -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