Skip to content

Commit 6382193

Browse files
authored
Add automatic tests in GitHub actions
1 parent b103ac0 commit 6382193

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/go.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
- uses: actions/setup-go@v5
18+
with:
19+
go-version: 'stable'
20+
check-latest: true
21+
22+
- name: Build
23+
run: go build -v ./...
24+
25+
- name: Test
26+
run: go test -race -v ./...
27+
28+
- name: Benchmark
29+
run: go test -bench=. -run=XXX -benchmem -v ./...
30+
31+
- name: Fuzz
32+
run: go test -fuzz=. -run=XXX -fuzztime 1m .

0 commit comments

Comments
 (0)