This repository was archived by the owner on Apr 27, 2025. It is now read-only.
add missing file #82
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 test report | |
| on: [push] | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| - name: Run tests | |
| run: make test | |
| - name: Generate HTML coverage report | |
| run: mkdir -p ci_report_site && go tool cover -html=cover.out -o ci_report_site/index.html | |
| - id: pages | |
| name: Publish to Cloudflare Pages | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: kuberik-propagation-ci | |
| directory: ci_report_site | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |