Skip to content

Commit 8ad2af6

Browse files
committed
feat: Barebones introduction of vitest and testing-library
github: Remove build workflow since it isn't type checking anyway github: Add test workflow for pull requests
1 parent df04758 commit 8ad2af6

File tree

7 files changed

+3122
-260
lines changed

7 files changed

+3122
-260
lines changed
Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
name: Build Status
1+
name: Test Status
22

33
on:
44
pull_request:
55
branches:
66
- '*'
7-
push:
8-
branches:
9-
- master
107

118
jobs:
12-
build:
13-
name: Build
9+
test:
10+
name: Test
1411
runs-on: ubuntu-latest
1512

1613
steps:
@@ -21,22 +18,14 @@ jobs:
2118
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
2219
git submodule sync --recursive
2320
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
24-
- name: Use Node.js 20.x
25-
uses: actions/setup-node@v1
21+
- name: Use Node.js 22
22+
uses: actions/setup-node@v4
2623
with:
27-
node-version: 20.x
28-
- uses: actions/cache@v3
29-
id: cache
30-
with:
31-
path: |
32-
**/node_modules
33-
key: ${{ runner.os }}-${{ hashFiles('package.json') }}
24+
node-version: '22'
25+
cache: 'npm'
3426
- name: Install Dependencies
35-
run: npm install --force
36-
if: steps.cache.outputs.cache-hit != 'true'
37-
env:
38-
CI: true
39-
- name: npm build
40-
run: npm run build
27+
run: npm ci
28+
- name: Test
29+
run: npm test
4130
env:
4231
CI: true

0 commit comments

Comments
 (0)