diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efc432a..28b9727 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,8 +40,6 @@ jobs: name: Build, test, and pack runs-on: windows-latest permissions: - contents: read - actions: read checks: write steps: - uses: actions/checkout@v4 @@ -49,8 +47,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 9.0.x - dotnet-quality: ga + dotnet-version: 9.x - name: Update project versions run: | @@ -111,20 +108,12 @@ jobs: shell: pwsh - name: (Twilio.AspNet.Core.UnitTests) Test - run: dotnet test --no-build --logger trx + run: dotnet test --no-build --no-restore working-directory: src/Twilio.AspNet.Core.UnitTests/ shell: pwsh - - name: (Twilio.AspNet.Core.UnitTests) Report Tests - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Twilio.AspNet.Core.UnitTests - path: src/Twilio.AspNet.Core.UnitTests/TestResults/*.trx - reporter: dotnet-trx - - name: (Twilio.AspNet.Core) Pack - run: dotnet pack -c Release -o ..\..\ + run: dotnet pack --no-build --no-restore -c Release -o ..\..\ working-directory: src/Twilio.AspNet.Core/ shell: pwsh @@ -158,20 +147,12 @@ jobs: shell: pwsh - name: (Twilio.AspNet.Mvc.UnitTests) Test - run: dotnet test --no-build --logger trx + run: dotnet test --no-build --no-restore working-directory: src/Twilio.AspNet.Mvc.UnitTests/ shell: pwsh - - - name: (Twilio.AspNet.Mvc.UnitTests) Report Tests - uses: dorny/test-reporter@v1 - if: success() || failure() # run this step even if previous step failed - with: - name: Twilio.AspNet.Mvc.UnitTests - path: src/Twilio.AspNet.Mvc.UnitTests/TestResults/*.trx - reporter: dotnet-trx - + - name: (Twilio.AspNet.Mvc) Pack - run: dotnet pack -c Release -o ..\..\ + run: dotnet pack --no-build --no-restore -c Release -o ..\..\ working-directory: src/Twilio.AspNet.Mvc/ shell: pwsh