Skip to content

Commit e6d52f0

Browse files
authored
Create go.yml
1 parent d875f2a commit e6d52f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/go.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
push:
7+
branches: ["main"]
8+
9+
env:
10+
GO_VERSION: "1.20"
11+
12+
jobs:
13+
verify:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 2
20+
- name: Setup Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: ${{ env.GO_VERSION }}
24+
- name: Lint
25+
uses: golangci/golangci-lint-action@v3
26+
with:
27+
version: v1.54
28+
- name: Test
29+
run: go test ./... -v -race -coverprofile=coverage.out -covermode=atomic
30+
- name: Upload coverage profile
31+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)