cloudflare/pint

Public

mirrored from https://github.com/cloudflare/pintAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.63.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/test.yml

59lines · modecode

1name: Test Go code
2
3on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10
11jobs:
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@v5
22 with:
23 go-version-file: go.ver
24 cache: false
25
26 - name: Test
27 run: make test
28
29 - name: Check for local changes
30 run: git diff --exit-code
31
32 # Codecov reporting is unreliable.
33 # Re-run report 3 times to have a better
34 # chance of success.
35 - name: Report code coverage (1)
36 uses: codecov/codecov-action@v4
37 with:
38 token: ${{ secrets.CODECOV_TOKEN }}
39 files: ./.cover/coverage.out
40 fail_ci_if_error: true
41 handle_no_reports_found: true
42 continue-on-error: true
43
44 - name: Report code coverage (2)
45 uses: codecov/codecov-action@v4
46 with:
47 token: ${{ secrets.CODECOV_TOKEN }}
48 files: ./.cover/coverage.out
49 fail_ci_if_error: true
50 handle_no_reports_found: true
51 continue-on-error: true
52
53 - name: Report code coverage (3)
54 uses: codecov/codecov-action@v4
55 with:
56 token: ${{ secrets.CODECOV_TOKEN }}
57 files: ./.cover/coverage.out
58 fail_ci_if_error: true
59 handle_no_reports_found: true
60