-
-
Notifications
You must be signed in to change notification settings - Fork 174
43 lines (39 loc) · 971 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Tests (against [email protected])
on:
workflow_dispatch:
pull_request:
push:
branches:
- '**'
tags:
- '!**'
jobs:
test:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
node:
- 18
- 20
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (Node v${{ matrix.node }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install [email protected] @types/node@18 --ignore-scripts
- name: Build knip
run: npm run build
working-directory: packages/knip
- name: Run knip
run: npx knip
- name: Run knip (production/strict)
run: npx knip --production --strict
- name: Test knip
run: npm run test:node
working-directory: packages/knip