Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 0 additions & 8 deletions .github/codecov.yml

This file was deleted.

33 changes: 25 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,23 +303,40 @@ jobs:
name: Upload Coverage
needs: library-tests
runs-on: ubuntu-latest
permissions:
contents: read
code-quality: write
steps:
- name: Download all coverage artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
path: ./output/download
pattern: coverage-*

- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
- name: Install .NET
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
dotnet-version: 10.x

- name: Install dotnet-coverage
run: |
dotnet tool install --global dotnet-coverage --version 18.8.0
echo "$HOME/.dotnet/tools" >> "$GITHUB_PATH"

- name: Merge coverage reports
run: >
dotnet-coverage merge
--output ./output/merged.cobertura.xml
--output-format cobertura
"./output/download/**/*.cobertura.xml"

- name: Upload coverage to GitHub
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
timeout-minutes: 10
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: graphql-platform
files: "./output/download/coverage-*/*.cobertura.xml"
disable_search: true
flags: unittests
fail_ci_if_error: true
file: ./output/merged.cobertura.xml
language: "C#"
label: code-coverage/dotnet

validate-nitro-client:
name: Validate Nitro Client
Expand Down
33 changes: 25 additions & 8 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,37 @@ jobs:
name: Upload Coverage
needs: library-tests
runs-on: ubuntu-latest
permissions:
contents: read
code-quality: write
steps:
- name: Download all coverage artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
path: ./output/download
pattern: coverage-*

- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
- name: Install .NET
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
dotnet-version: 10.x

- name: Install dotnet-coverage
run: |
dotnet tool install --global dotnet-coverage --version 18.8.0
echo "$HOME/.dotnet/tools" >> "$GITHUB_PATH"

- name: Merge coverage reports
run: >
dotnet-coverage merge
--output ./output/merged.cobertura.xml
--output-format cobertura
"./output/download/**/*.cobertura.xml"

- name: Upload coverage to GitHub
uses: actions/upload-code-coverage@abb5995db9e0199b0e2bb9dbd136fce4cb1ec4d3 # v1
timeout-minutes: 10
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: graphql-platform
files: "./output/download/coverage-*/*.cobertura.xml"
disable_search: true
flags: unittests
fail_ci_if_error: true
file: ./output/merged.cobertura.xml
language: "C#"
label: code-coverage/dotnet
Loading