cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
.github/workflows/test.yml
35lines · 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@v3 |
| 17 | |
| 18 | - name: Set up Go |
| 19 | uses: actions/setup-go@v3 |
| 20 | with: |
| 21 | go-version: 1.20.1 |
| 22 | cache: true |
| 23 | |
| 24 | - name: Test |
| 25 | run: make test |
| 26 | |
| 27 | - name: Check for local changes |
| 28 | run: git diff --exit-code |
| 29 | |
| 30 | - name: Report code coverage |
| 31 | uses: codecov/codecov-action@v3 |
| 32 | with: |
| 33 | token: ${{ secrets.CODECOV_TOKEN }} |
| 34 | files: ./.cover/coverage.out |
| 35 | fail_ci_if_error: true |
| 36 | |