Skip to content

Commit 4737ff3

Browse files
Add tests
1 parent fc39607 commit 4737ff3

5 files changed

Lines changed: 1128 additions & 51 deletions

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,29 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [16.x, 22.x]
12+
node-version: [18.x, 22.x]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Node.js specs ${{ matrix.node-version }}
1616
uses: actions/setup-node@v1
1717
with:
1818
node-version: ${{ matrix.node-version }}
19-
- run: npm ci
19+
- run: npm i
2020
- run: npm run build
21-
- run: npm run test
21+
- run: npm run test:specs
22+
format:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
node-version: [22.x]
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Type checks ${{ matrix.node-version }}
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
- run: npm i
34+
- run: npm run test:format
2235
types:
2336
runs-on: ubuntu-latest
2437
strategy:
@@ -30,6 +43,6 @@ jobs:
3043
uses: actions/setup-node@v1
3144
with:
3245
node-version: ${{ matrix.node-version }}
33-
- run: npm ci
46+
- run: npm i
3447
- run: npm run build
35-
- run: npx --yes @arethetypeswrong/cli@latest --pack .
48+
- run: npm run test:types

0 commit comments

Comments
 (0)