chore: Generate test coverage reports #8
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: Generate Coverage Report | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 6 * * *" | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| gen-coverage-report: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GH_CQ_BOT }} | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25" | |
| cache: false | |
| - name: Generate Coverage Report | |
| run: make coverage | |
| - uses: stefanzweifel/git-auto-commit-action@v5 | |
| if: github.event_name == 'pull_request' | |
| with: | |
| commit_message: "chore: Update coverage report" | |
| - name: Create Pull Request | |
| if: github.event_name != 'pull_request' | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| # required so the PR triggers workflow runs | |
| token: ${{ secrets.GH_CQ_BOT }} | |
| branch: chore/update_coverage_report | |
| base: main | |
| title: "chore: Update coverage report" | |
| commit-message: "chore: Update coverage report" | |
| body: This PR was created by a scheduled workflow to update the coverage report | |
| author: cq-bot <[email protected]> | |
| labels: automerge |