Skip to content

chore(dependencies): add wait-on package to package.json and update p… #60

chore(dependencies): add wait-on package to package.json and update p…

chore(dependencies): add wait-on package to package.json and update p… #60

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to checkout the repository
steps:
- uses: actions/checkout@v4
- name: Install pnpm
run: npm install -g pnpm
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
# Setup .next/cache directory cache
- name: Setup Next.js cache
uses: actions/cache@v4
with:
path: |
.next/cache
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-
${{ runner.os }}-nextjs-
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Format check
run: pnpm format --check
- name: Build
run: pnpm build --debug
env:
NEXT_TELEMETRY_DISABLED: 1
NODE_OPTIONS: "--max_old_space_size=4096"
NEXTJS_DEBUG: 1
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run unit tests
run: pnpm test
- name: Run Playwright e2e tests
run: pnpm test:e2e