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