We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06f033a commit 6478564Copy full SHA for 6478564
1 file changed
.github/workflows/test.yml
@@ -0,0 +1,30 @@
1
+name: Test and Coverage
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
8
9
+jobs:
10
+ test:
11
+ name: Test with Coverage
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - name: Check out code
16
+ uses: actions/checkout@v5
17
18
+ - name: Set up Go
19
+ uses: actions/setup-go@v6
20
+ with:
21
+ go-version: '1.25.3'
22
23
+ - name: Run tests with coverage
24
+ run: go test -coverprofile=coverage.out ./...
25
26
+ - name: Upload coverage reports to Codecov
27
+ uses: codecov/codecov-action@v5
28
29
+ files: ./coverage.out
30
+ token: ${{ secrets.CODECOV_TOKEN }}
0 commit comments