@@ -19,50 +19,38 @@ jobs:
1919 - name : Checkout code
2020 uses : actions/checkout@v4
2121
22- - name : Setup Node.js ${{ matrix.node-version }}
23- uses : actions /setup-node@v4
22+ - name : Setup Bun
23+ uses : oven-sh /setup-bun@v2
2424 with :
25- node -version : ${{ matrix.node-version }}
25+ bun -version : latest
2626
27- - name : Setup pnpm
28- uses : pnpm/action-setup@v3
29- with :
30- version : 8
31-
32- - name : Get pnpm store directory
33- shell : bash
34- run : |
35- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
36-
37- - name : Cache pnpm dependencies
27+ - name : Cache Bun dependencies
3828 uses : actions/cache@v4
3929 with :
40- path : ${{ env.STORE_PATH }}
41- key : ${{ runner.os }}-pnpm-store- ${{ hashFiles('**/pnpm-lock.yaml ') }}
30+ path : ~/.bun/install/cache
31+ key : ${{ runner.os }}-bun- ${{ hashFiles('**/bun.lockb ') }}
4232 restore-keys : |
43- ${{ runner.os }}-pnpm-store -
33+ ${{ runner.os }}-bun -
4434
4535 - name : Cache Next.js build
4636 uses : actions/cache@v4
4737 with :
48- path : |
49- ~/.npm
50- ${{ github.workspace }}/.next/cache
51- key : ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
38+ path : ${{ github.workspace }}/.next/cache
39+ key : ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
5240 restore-keys : |
53- ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml ') }}-
41+ ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb ') }}-
5442
5543 - name : Install dependencies
56- run : pnpm install --frozen-lockfile
44+ run : bun install
5745
5846 - name : Run ESLint
59- run : pnpm run lint
47+ run : bun run lint
6048
6149 - name : Type check
62- run : pnpm run type-check
50+ run : bun run type-check
6351
6452 - name : Build project
65- run : pnpm run build
53+ run : bun run build
6654 env :
6755 NODE_ENV : production
6856
@@ -82,18 +70,13 @@ jobs:
8270 - name : Checkout code
8371 uses : actions/checkout@v4
8472
85- - name : Setup Node.js
86- uses : actions/setup-node@v4
87- with :
88- node-version : 20.x
89-
90- - name : Setup pnpm
91- uses : pnpm/action-setup@v3
73+ - name : Setup Bun
74+ uses : oven-sh/setup-bun@v2
9275 with :
93- version : 8
76+ bun- version : latest
9477
9578 - name : Install dependencies
96- run : pnpm install --frozen-lockfile
79+ run : bun install --frozen-lockfile
9780
9881 - name : Check for console statements
9982 run : |
0 commit comments