Skip to content

Commit 8e74676

Browse files
committed
Add GHA for 'make test'
1 parent c019d63 commit 8e74676

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Run tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: 'go.mod'
22+
23+
- name: Run tests
24+
run: make test
25+
26+
- name: Upload coverage
27+
uses: codecov/codecov-action@v4
28+
if: success()
29+
with:
30+
fail_ci_if_error: false

0 commit comments

Comments
 (0)