Skip to content

Commit 152ca93

Browse files
Create codecov.yml
1 parent 7f5092b commit 152ca93

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will run tests and collect coverage
2+
3+
name: Run tests and upload coverage
4+
5+
on:
6+
push
7+
8+
jobs:
9+
test:
10+
name: Run tests and collect coverage
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
21+
- name: Install dependencies
22+
run: go mod download
23+
24+
- name: Run tests
25+
run: go test -coverprofile=coverage.txt
26+
27+
- name: Upload results to Codecov
28+
uses: codecov/codecov-action@v5
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
slug: retail-ai-inc/sync

0 commit comments

Comments
 (0)