Switch workflows to Bun install/test and update pnpm
This commit is contained in:
parent
c3237dfb64
commit
775956c160
37 changed files with 2618 additions and 113 deletions
20
.github/workflows/quality-checks.yml
vendored
20
.github/workflows/quality-checks.yml
vendored
|
|
@ -22,16 +22,10 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
|
@ -42,25 +36,25 @@ jobs:
|
|||
run: bun --version
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
- name: Cache Next.js build cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ github.workspace }}/.next/cache
|
||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**/*.{js,jsx,ts,tsx}') }}
|
||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml', 'bun.lock') }}-${{ hashFiles('**/*.{js,jsx,ts,tsx}') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-
|
||||
${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml', 'bun.lock') }}-
|
||||
|
||||
- name: Generate Prisma client
|
||||
run: pnpm prisma:generate
|
||||
run: bun run prisma:generate
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
run: bun run lint
|
||||
|
||||
- name: Test
|
||||
run: pnpm test
|
||||
run: bun test
|
||||
|
||||
- name: Build
|
||||
run: pnpm build:bun
|
||||
run: bun run build:bun
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue