Merge development into main #24
This file contains hidden or 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: Knip | |
| on: | |
| pull_request: | |
| jobs: | |
| run-knip: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Store PR number | |
| run: echo ${{ github.event.number }} > pr-number.txt | |
| - name: Run Knip | |
| run: bun run knip || bun run knip-ci > knip-results.json | |
| - name: Upload knip result | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: knip-results | |
| path: | | |
| knip-results.json | |
| pr-number.txt |