Skip to content

Commit d0a4e3a

Browse files
committed
ci: add GitHub Actions workflow for tests and Codecov integration
1 parent 6db874c commit d0a4e3a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/tag.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v6
18+
with:
19+
go-version: '1.24'
20+
21+
- name: Run test with coverage
22+
run: go test ./... -coverprofile=coverage.out -covermode=atomic
23+
24+
- name: Upload coverage to Codecov
25+
uses: codecov/codecov-action@v5
26+
with:
27+
flags: go-1.24

0 commit comments

Comments
 (0)