chore(deps): update codecov/codecov-action action to v5.5.3 #1499
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| env: | |
| DOTNET_NOLOGO: true | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-java: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: build | |
| shell: pwsh | |
| run: ./tools/build-java.ps1 | |
| test-dotnet: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| # fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| # - macos-latest Doesn't work yet | |
| - windows-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/.nuget/packages | |
| # Look to see if there is a cache hit for the corresponding requirements file | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| with: | |
| dotnet-version: | | |
| 8 | |
| 10 | |
| dotnet-quality: ga | |
| - name: prepare | |
| run: dotnet restore | |
| - name: tfm | |
| # building net461 doesn't work on non windows | |
| if: matrix.os != 'windows-latest' | |
| run: echo "NoNet4=true" >> $GITHUB_ENV | |
| - name: build | |
| run: dotnet build --no-restore | |
| - name: test | |
| run: dotnet test --no-build | |
| - name: Codecov test results | |
| if: github.event_name != 'merge_group' && !cancelled() | |
| uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3 | |
| with: | |
| use_oidc: true | |
| report_type: test_results | |
| fail_ci_if_error: true | |
| - name: Codecov coverage results | |
| uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3 | |
| with: | |
| use_oidc: true | |
| files: '**/TestResults/*/*.cobertura.xml' | |
| fail_ci_if_error: true | |
| build: | |
| runs-on: windows-latest | |
| timeout-minutes: 15 | |
| needs: | |
| - test-java | |
| - test-dotnet | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: ~/.nuget/packages | |
| # Look to see if there is a cache hit for the corresponding requirements file | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| with: | |
| dotnet-version: 10 | |
| dotnet-quality: ga | |
| - name: prepare | |
| run: dotnet restore | |
| - name: build | |
| run: dotnet build --no-restore -c Release | |
| - name: pack | |
| run: dotnet pack --no-build -o bin -c Release | |
| - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: packages | |
| path: bin/*.nupkg |