Skip to content

Commit

Permalink
chore: re-enabled coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gigi81 committed Aug 26, 2021
1 parent dcb308d commit 91f4423
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/ci.yml
Expand Up @@ -34,39 +34,39 @@ jobs:
with:
name: Code coverage ${{ matrix.os }}
path: "**/coverage.cobertura.xml"
# coverage:
# name: Coverage
# needs: [test]
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# - uses: actions/download-artifact@v2
# with:
# name: Code coverage ubuntu-latest
# path: coverage-ubuntu
# - uses: actions/download-artifact@v2
# with:
# name: Code coverage windows-latest
# path: coverage-windows
# - uses: actions/download-artifact@v2
# with:
# name: Code coverage macos-latest
# path: coverage-macos
# - name: Generate coverage report
# uses: danielpalme/ReportGenerator-GitHub-Action@4.8.12
# with:
# reports: "**/coverage.cobertura.xml"
# targetdir: "coverage-report"
# reporttypes: "Cobertura"
# - name: Publish coverage report to Codacy
# uses: codacy/codacy-coverage-reporter-action@master
# if: github.repository == 'System-IO-Abstractions/System.IO.Abstractions.Extensions' && github.event_name == 'push'
# with:
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# coverage-reports: coverage-report/Cobertura.xml
coverage:
name: Coverage
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
- uses: actions/download-artifact@v2
with:
name: Code coverage ubuntu-latest
path: coverage-ubuntu
- uses: actions/download-artifact@v2
with:
name: Code coverage windows-latest
path: coverage-windows
- uses: actions/download-artifact@v2
with:
name: Code coverage macos-latest
path: coverage-macos
- name: Generate coverage report
uses: danielpalme/ReportGenerator-GitHub-Action@4.8.12
with:
reports: "**/coverage.cobertura.xml"
targetdir: "coverage-report"
reporttypes: "Cobertura"
- name: Publish coverage report to Codacy
uses: codacy/codacy-coverage-reporter-action@master
if: github.repository == 'System-IO-Abstractions/System.IO.Abstractions.Extensions' && github.event_name == 'push'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage-report/Cobertura.xml
pack:
name: Pack
needs: [test]
Expand Down

0 comments on commit 91f4423

Please sign in to comment.