Skip to content

Commit 0a3f667

Browse files
authored
DE-1361 CI (#113)
1 parent 68c0e25 commit 0a3f667

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)