Report @types/pkg as unused if pkg already has types included (resolv… #582
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
name: Cross-OS Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '!**' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
node: | |
- 16 | |
- 18 | |
- 20 | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} (Node v${{ matrix.node }}) | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- run: npm run knip | |
- run: npm run knip:production | |
- run: npm test |