Skip to content

Commit 954b8a2

Browse files
author
jojohoooo
committed
replace code-check by bun
1 parent fe5e78a commit 954b8a2

2 files changed

Lines changed: 8 additions & 69 deletions

File tree

.github/workflows/code-check-2.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/code-check.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code check
1+
name: Code check 2
22

33
on:
44
pull_request:
@@ -32,30 +32,17 @@ jobs:
3232
with:
3333
node-version: 18
3434

35-
- name: Setup pnpm
36-
uses: pnpm/action-setup@v2.2.4
35+
- name: Setup bun
36+
uses: oven-sh/setup-bun@v1
3737
with:
38-
version: 8.6.1
38+
bun-version: latest
3939

40-
- name: Get pnpm store directory
41-
id: pnpm-cache
42-
run: |
43-
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
44-
45-
- name: Setup pnpm cache
46-
uses: actions/cache@v3
47-
with:
48-
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
49-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
50-
restore-keys: |
51-
${{ runner.os }}-pnpm-store-
52-
53-
- name: Install deps (with cache)
54-
run: pnpm install
40+
- name: Install deps
41+
run: bun install
5542

5643
# TODO: Linting is failing because of contentlayer types, need to fix that
5744
# - name: Run lint
58-
# run: pnpm run lint
45+
# run: bun run lint
5946

6047
- name: Run typecheck
61-
run: pnpm run typecheck
48+
run: bun run typecheck

0 commit comments

Comments
 (0)