Skip to content

Commit 6ad5e83

Browse files
committed
feat(ci): test with/out cgo
Format yaml using prettier Remove go1.17 since modernc.org/sqlite requires at least go1.18
1 parent e4f9f7a commit 6ad5e83

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/ci.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ jobs:
99
name: Test
1010
strategy:
1111
matrix:
12-
go: ['1.20', '1.19', '1.18', '1.17']
12+
go: ["^1", "1.20", "1.19", "1.18"]
1313
platform: [ubuntu-latest] # can not run in windows OS
14+
cgo: ["0", "1"]
1415
runs-on: ubuntu-latest
1516
steps:
16-
- name: Set up Go
17-
uses: actions/setup-go@v4
18-
with:
19-
go-version: ${{ matrix.go }}
20-
- uses: actions/checkout@v3
21-
- name: Test
22-
run: go test -v -cover .
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: ${{ matrix.go }}
21+
- uses: actions/checkout@v3
22+
- name: Test
23+
env:
24+
CGO_ENABLED: ${{ matrix.cgo }}
25+
run: go test -v -cover .

0 commit comments

Comments
 (0)