cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
.github/workflows/test.yml
42lines · modecode
| 1 | name: Test Go code |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - main |
| 10 | |
| 11 | permissions: read-all |
| 12 | |
| 13 | jobs: |
| 14 | test-go: |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - name: Check out code |
| 18 | uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| 19 | with: |
| 20 | show-progress: false |
| 21 | |
| 22 | - name: Set up Go |
| 23 | uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 |
| 24 | with: |
| 25 | go-version-file: go.ver |
| 26 | cache: false |
| 27 | |
| 28 | - name: Test |
| 29 | run: make test |
| 30 | |
| 31 | - name: Check for local changes |
| 32 | run: git diff --exit-code |
| 33 | |
| 34 | - name: Report code coverage |
| 35 | uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 |
| 36 | with: |
| 37 | token: ${{ secrets.CODECOV_TOKEN }} |
| 38 | files: ./.cover/coverage.out |
| 39 | fail_ci_if_error: true |
| 40 | handle_no_reports_found: true |
| 41 | continue-on-error: true |
| 42 | |
| 43 | |