Skip to content

Commit

Permalink
ci: use bun to build
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Sep 15, 2023
1 parent 3311014 commit a2d69d3
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,29 @@ jobs:
steps:
- uses: actions/checkout@main

- name: (env) setup pnpm
uses: pnpm/action-setup@master
with:
version: 8.6.5

- name: (env) setup node v${{ matrix.node }}
uses: actions/setup-node@main
with:
node-version: ${{ matrix.node }}
cache: pnpm
check-latest: true

- run: pnpm install --ignore-scripts
- run: pnpm run build
- run: pnpm run test
- run: pnpm run typecheck
- name: (env) setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.0

- name: (env) cache
uses: actions/cache@v3
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.node }}-

- name: (env) globals
run: bun add -g oxlint

- run: bun install
- run: oxlint .
- run: bun run build
- run: bun run typecheck
- run: npm run test

0 comments on commit a2d69d3

Please sign in to comment.