77
88jobs :
99 build :
10- name : Build, lint , and test on Node ${{ matrix.node }} and ${{ matrix.os }}
10+ name : Lint, test , and build (Bun)
1111
1212 if : startsWith(github.head_ref, 'renovate/')
13- runs-on : ${{ matrix.os }}
14- strategy :
15- matrix :
16- node : ["22.x"]
17- os : [ubuntu-latest]
13+ runs-on : ubuntu-latest
1814
1915 steps :
2016 - uses : dorny/paths-filter@v3
2420 src:
2521 - 'src/**'
2622 - 'package.json'
27- - 'pnpm-lock.yaml'
23+ - 'bun.lock'
24+ - 'bun.lockb'
25+
2826 - name : Checkout repo
2927 if : steps.changes.outputs.src == 'true'
3028 uses : actions/checkout@v4
@@ -34,38 +32,31 @@ jobs:
3432 git config user.name "${{ secrets.USER_NAME }}"
3533 git config user.email "${{ secrets.USER_EMAIL }}"
3634
37- - name : Use Node ${{ matrix.node }}
38- if : steps.changes.outputs.src == 'true'
39- uses : actions/setup-node@v4
35+ - if : steps.changes.outputs.src == 'true'
36+ uses : oven-sh/setup-bun@v2
4037 with :
41- node-version : ${{ matrix.node }}
42-
43- - name : Install PNPM
44- if : steps.changes.outputs.src == 'true'
45- uses : pnpm/action-setup@v4.1.0
38+ bun-version : ' 1.3.13'
4639
47- - name : Install deps and build (with cache)
40+ - name : Install dependencies
4841 if : steps.changes.outputs.src == 'true'
49- run : pnpm install --no -frozen-lockfile
42+ run : bun install --frozen-lockfile
5043
5144 - name : Lint
5245 if : steps.changes.outputs.src == 'true'
53- run : pnpm lint
46+ run : bun run lint
5447
5548 - name : Test
5649 if : steps.changes.outputs.src == 'true'
57- run : pnpm test -- --ci --coverage --maxWorkers=2
50+ run : bun run test
5851
5952 - name : Build
6053 if : steps.changes.outputs.src == 'true'
61- run : pnpm build
54+ run : bun run build
6255
6356 - name : Bump version
6457 if : steps.changes.outputs.src == 'true'
6558 uses : qzb/standard-version-action@v1.0.13
6659
67-
68-
6960 - if : steps.changes.outputs.src == 'true'
7061 run : |
7162 git config --global user.name "${{ secrets.USER_NAME }}"
7667 uses : JS-DevTools/npm-publish@v3
7768 with :
7869 token : ${{ secrets.NPM_TOKEN }}
79-
80-
0 commit comments