Skip to content

Commit afce3bf

Browse files
committed
chore: github action test run
1 parent efae8c0 commit afce3bf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/run_tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 20
21+
22+
- name: Install dependencies
23+
run: yarn install
24+
25+
- name: Run tests with coverage
26+
run: yarn vitest run --coverage
27+
28+
# - name: Upload coverage to Codecov
29+
# uses: codecov/codecov-action@v5
30+
# with:
31+
# files: coverage/coverage-final.json
32+
# token: ${{ secrets.CODECOV_TOKEN }} # optional if public repo

0 commit comments

Comments
 (0)