Skip to content

Commit 6478564

Browse files
committed
Move action to correct location
1 parent 06f033a commit 6478564

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 and Coverage
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Test with Coverage
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out code
16+
uses: actions/checkout@v5
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v6
20+
with:
21+
go-version: '1.25.3'
22+
23+
- name: Run tests with coverage
24+
run: go test -coverprofile=coverage.out ./...
25+
26+
- name: Upload coverage reports to Codecov
27+
uses: codecov/codecov-action@v5
28+
with:
29+
files: ./coverage.out
30+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)