ci: bump actions/download-artifact from 7 to 8 #79
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| checks: write # Required for dorny/test-reporter | |
| jobs: | |
| # Build and test the code | |
| build-and-test: | |
| name: Build and Test | |
| uses: ./.github/workflows/build-and-test-template.yaml | |
| with: | |
| test-results-artifact-name: test-results | |
| coverage-artifact-name: coverage | |
| # Publish coverage report | |
| publish-coverage: | |
| name: Publish Coverage Report | |
| runs-on: ubuntu-latest | |
| needs: build-and-test | |
| if: always() | |
| steps: | |
| - name: Download coverage artifacts | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: coverage | |
| path: coverage | |
| - name: Generate Coverage Report | |
| uses: danielpalme/ReportGenerator-GitHub-Action@5.5.1 | |
| with: | |
| reports: 'coverage/**/coverage.cobertura.xml' | |
| targetdir: 'coveragereport' | |
| reporttypes: 'Html;MarkdownSummary;TextSummary' | |
| - name: Upload coverage HTML report | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-report-html | |
| path: coveragereport | |
| retention-days: 30 | |
| - name: Display coverage summary | |
| run: cat coveragereport/Summary.md >> $GITHUB_STEP_SUMMARY | |
| # Security scanning | |
| security: | |
| name: Security Scan | |
| uses: ./.github/workflows/security-template.yaml |