chore: streamline workflow by consolidating test report publishing steps #377
Workflow file for this run
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-and-test | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| schedule: | |
| - cron: '0 2 * * *' | |
| jobs: | |
| previous-reports-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Modify reports | |
| run: npm run modify-reports | |
| - name: Reports Requiring Previous | |
| uses: ./ | |
| with: | |
| report-path: './ctrf-reports/*.json' | |
| previous-results-report: true | |
| flaky-rate-report: true | |
| fail-rate-report: true | |
| insights-report: true | |
| slowest-report: true | |
| upload-artifact: true | |
| annotate: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| if: always() |