Skip to content

Commit 08790b6

Browse files
committed
Add codecov upload to GitHub actions
1 parent 411175a commit 08790b6

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/github-actions.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,26 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v3
25+
2526
- name: Setup node
2627
uses: actions/setup-node@v3
2728
with:
2829
node-version: 20
29-
- run: yarn
30-
- run: TESTS_USE_MOCKNET=true yarn test -- -- --coverage --coverageProvider=v8
31-
- run: yarn lint
32-
- run: yarn spellcheck
30+
31+
- name: Install dependencies
32+
run: yarn
33+
34+
- name: Run tests
35+
run: TESTS_USE_MOCKNET=true yarn test -- -- --coverage --coverageProvider=v8
36+
37+
- name: Run linter
38+
run: yarn lint
39+
40+
- name: Run spellchecker
41+
run: yarn spellcheck
42+
43+
- name: Upload coverage reports to Codecov
44+
uses: codecov/codecov-action@v5
45+
with:
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
slug: CashScript/cashscript

0 commit comments

Comments
 (0)