Skip to content

Commit 2b01345

Browse files
yhabteablippserd
authored andcommitted
Add go github workflows
1 parent 1c4eebc commit 2b01345

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/go.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request: { }
7+
8+
jobs:
9+
go:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Go
15+
uses: actions/setup-go@v5
16+
with:
17+
go-version: stable
18+
cache: false
19+
20+
- name: Lint
21+
uses: golangci/golangci-lint-action@v3
22+
with:
23+
version: latest
24+
only-new-issues: true
25+
26+
# Enable the gosec linter w/o having to create a .golangci.yml config
27+
args: -E gosec
28+
29+
- name: Test
30+
run: go test -v ./...

0 commit comments

Comments
 (0)