Skip to content

Commit 28cda73

Browse files
committed
.github: add workflow for basic unit tests
1 parent 72df3a4 commit 28cda73

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/tests.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
- 'release-branch/*'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- uses: actions/setup-go@v3
24+
with:
25+
go-version-file: go.mod
26+
cache: true
27+
28+
- name: Run go test
29+
run: go test ./...

0 commit comments

Comments
 (0)