-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,14 +25,19 @@ jobs: | |
name: ${{ matrix.os }} (Node v${{ matrix.node }}) | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
- run: npm install [email protected] @types/node@18 | ||
- run: npm run lint --workspaces --if-present | ||
- run: npm run build --workspace packages/knip | ||
- run: npx knip | ||
- run: npx knip --production --strict | ||
- run: npm test --workspaces --if-present | ||
- 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 |