-
-
Notifications
You must be signed in to change notification settings - Fork 180
38 lines (36 loc) · 954 Bytes
/
ci-bun.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tests (Bun)
on:
workflow_dispatch:
pull_request:
push:
branches:
- '**'
tags:
- '!**'
jobs:
test:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
# - windows-latest # temp disabled because https://github.com/oven-sh/bun/issues/9932
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --ignore-scripts --frozen-lockfile
- name: Run formatter, linter, import sorter
run: bun ci
- 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