Skip to content

Commit fe9efa0

Browse files
committed
add linting and go test on pr creation
1 parent 3c65de0 commit fe9efa0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflow/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
golang-lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Check out code
8+
uses: actions/checkout@v4
9+
10+
- name: Install Go 1.23
11+
uses: actions/setup-go@v5
12+
with:
13+
go-version: '1.23'
14+
- name: Lint code
15+
uses: golangci/golangci-lint-action@v8
16+
with:
17+
version: v2.1
18+
golang-test:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out code
22+
uses: actions/checkout@v4
23+
24+
- name: Install Go 1.23
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: '1.23'
28+
- name: Download dependencies
29+
run: go mod download
30+
- name: Run tests
31+
run: go test -v ./...
32+
33+

0 commit comments

Comments
 (0)