Skip to content

Commit 3197051

Browse files
authored
Merge pull request #8 from timwhite06/timer_logic_and_init_tests
migrate timer logic into own file + start of tests
2 parents be8ada4 + d6da997 commit 3197051

File tree

13 files changed

+1502
-139
lines changed

13 files changed

+1502
-139
lines changed

.github/workflows/vitest.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: 'Vitest Continuous Integration (CI) Tests'
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
# Required to checkout the code
16+
contents: read
17+
# Required to put a comment into the pull-request
18+
pull-requests: write
19+
20+
steps:
21+
- name: Checkout Feature Branch
22+
uses: actions/checkout@v4
23+
24+
- name: 'Install Node'
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '22.x'
28+
29+
- name: 'Install Dependencies'
30+
run: npm install
31+
32+
- name: 'Vitest Tests'
33+
run: npm run test:coverage
34+
35+
- name: 'Report Coverage'
36+
# Set if: always() to also generate the report if tests are failing
37+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
38+
if: always()
39+
uses: davelosert/vitest-coverage-report-action@v2

0 commit comments

Comments
 (0)