Skip to content

Commit e3be055

Browse files
committed
🔧 Add ci.yml for GitHub Actions Workflow
1 parent 10b9655 commit e3be055

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
# if: "!contains(github.event.head_commit.message, '[ci skip]')"
12+
strategy:
13+
matrix:
14+
go: ["1.21", "1.22", "1.23"]
15+
name: Test on Go ${{ matrix.go }}
16+
steps:
17+
# https://github.com/actions/checkout
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
22+
# https://github.com/actions/setup-go
23+
- uses: actions/setup-go@v5
24+
with:
25+
go-version: ${{ matrix.go }}
26+
27+
- name: Check golang version/env
28+
run: |
29+
set -x
30+
go version
31+
go env
32+
33+
- name: build
34+
run: make build
35+
36+
- name: lint
37+
run: make lint
38+
39+
- name: test
40+
run: make test

0 commit comments

Comments
 (0)