We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d479899 + 03188dd commit ed9094bCopy full SHA for ed9094b
.circleci/config.yml
.github/workflows/pr.yaml
@@ -0,0 +1,27 @@
1
+name: "Test"
2
+on:
3
+ push:
4
+ branches:
5
+ - "master"
6
+ pull_request:
7
8
+ - "*"
9
+permissions:
10
+ contents: "read"
11
+jobs:
12
+ unittest:
13
+ name: "Unit"
14
+ runs-on: "ubuntu-latest"
15
+ timeout-minutes: 10
16
+ steps:
17
+ - uses: "actions/checkout@v4"
18
+ - uses: "actions/setup-go@v5"
19
+ - name: "Unit tests with coverage"
20
+ run: "go test ./... -race -count=1 -coverprofile=coverage.txt -covermode=atomic -coverpkg=./..."
21
+ - name: "Coverage"
22
+ uses: "codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d" # v5.4.2
23
+ with:
24
+ files: "./coverage.txt"
25
+ token: "${{ secrets.CODECOV_TOKEN }}"
26
+ fail_ci_if_error: false
27
+
0 commit comments