Skip to content

Merge remote-tracking branch 'upstream/main' #2

Merge remote-tracking branch 'upstream/main'

Merge remote-tracking branch 'upstream/main' #2

Workflow file for this run

name: Tests (against typescript@latest in Node.js v20)
on:
workflow_dispatch:
pull_request:
push:
branches:
- '**'
tags:
- '!**'
jobs:
test:
runs-on: ubuntu-latest
name: Ubuntu/Node v20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install --ignore-scripts
- name: Install latest peer dependencies
run: |
npm install -w packages/knip typescript@latest @types/node@20 --ignore-scripts
- name: Build knip
run: npm run build
working-directory: packages/knip
- name: Test knip
run: npm run test:node
working-directory: packages/knip
- name: Run knip
run: npx knip
- name: Run knip --production --strict
run: npx knip --production --strict