Skip to content

Commit 5e402da

Browse files
chore: github workflow file
1 parent f14df26 commit 5e402da

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/main.yaml

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

0 commit comments

Comments
 (0)