File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ master, main ]
6
+ push :
7
+ branches : [ master, main ]
8
+
9
+ jobs :
10
+ test :
11
+ name : test
12
+ strategy :
13
+ matrix :
14
+ go-version :
15
+ - 1.22.x
16
+ - 1.23.x
17
+ os : [ ubuntu-latest ]
18
+ runs-on : ${{ matrix.os }}
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0 # for golangci-lint's -new-from-rev
24
+
25
+ - name : Set up Go
26
+ uses : actions/setup-go@v5
27
+ with :
28
+ go-version : ${{ matrix.go-version }}
29
+ cache : true # caching and restoring go modules and build outputs
30
+
31
+ - run : go env
32
+
33
+ - name : Install deps
34
+ run : go mod download
35
+
36
+ # TODO(vtopc):
37
+ # - name: nilaway
38
+ # run: make nilaway
39
+
40
+ # TODO(vtopc):
41
+ # - name: lint
42
+ # run: make lint
43
+
44
+ - name : Test
45
+ run : go test ./... -race -count=1
You can’t perform that action at this time.
0 commit comments