This repository was archived by the owner on Jan 30, 2025. It is now read-only.
feat(package.json): Beta update #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
jest-tests: | |
name: Run Jest Tests | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install -g pnpm && pnpm install | |
- name: Install dependencies for e2e/site | |
run: | | |
cd e2e/site | |
npm install | |
- name: Run Jest tests with coverage | |
run: pnpm exec jest --ci --coverage --reporters=github-actions --reporters=summary | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: coverage/ | |
playwright-tests: | |
name: Run Playwright Tests | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npm install -g pnpm && pnpm install | |
- name: Install dependencies for e2e/site | |
run: | | |
cd e2e/site | |
npm install | |
- name: Install Playwright Browsers | |
run: pnpm exec playwright install --with-deps | |
- name: Start Next.js Dev Server | |
run: pnpm run dev:e2e & | |
env: | |
CI: true | |
- name: Run Playwright tests | |
run: pnpm exec playwright test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |