Skip to content

Commit 79b5dff

Browse files
chore: github workflow file added
1 parent ab1cd1c commit 79b5dff

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Go CI
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
golangci:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
12+
with:
13+
go-version: stable
14+
- name: golangci-lint
15+
uses: golangci/golangci-lint-action@v6
16+
with:
17+
version: v1.60
18+
- name: Go Format
19+
uses: Jerome1337/gofmt-action@v1.0.5
20+
with:
21+
gofmt-path: './src'
22+
gofmt-flags: '-l -d'
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-go@v5
29+
with:
30+
go-version: stable
31+
- name: test
32+
run: go test -v ./pkg
33+
34+

0 commit comments

Comments
 (0)