Skip to content

Commit 14d9c35

Browse files
committed
Add GitHub actions
1 parent eacc85f commit 14d9c35

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/go.yaml

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

0 commit comments

Comments
 (0)