Fix up source code #14
Workflow file for this run
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: Tests (Bun) | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '!**' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
# With the lockfile, Bun collapses over the `sharp` dependency in docs | |
- run: rm bun.lockb | |
- name: Install dependencies | |
run: bun install | |
- name: Build knip | |
run: bun run build | |
working-directory: packages/knip | |
- name: Run knip | |
run: bunx --bun knip | |
- name: Run knip (production/strict) | |
run: bunx --bun knip --production --strict | |
- name: Test knip | |
run: bun run test | |
working-directory: packages/knip |