Skip to content

Commit 8c9580d

Browse files
committed
Add workflow
1 parent 3343302 commit 8c9580d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "master", "main" ]
6+
pull_request:
7+
branches: [ "master", "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v4
17+
with:
18+
go-version: '1.24'
19+
20+
- name: Test
21+
run: go test -v -race ./...
22+
23+
- name: Benchmark
24+
run: go test -bench .

0 commit comments

Comments
 (0)