Skip to content

Commit

Permalink
CI through bun
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Sep 9, 2023
1 parent 815202f commit 35ee921
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 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:
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 test
- run: bun run typecheck
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"bench": "node -r tsm bench/index.ts",
"build": "bundt --minify",
"format": "prettier --write \"{*,{src,test}/**/*,examples/*/**,bench/*,.github/**/*}.+(ts|js|json|yml|md)\"",
"pretest": "pnpm run build",
"test": "uvu src \".test.ts$\" -r tsm",
"typecheck": "tsc --noEmit"
},
Expand Down

0 comments on commit 35ee921

Please sign in to comment.