Skip to content

chore: checl if ci takes node from file #74

chore: checl if ci takes node from file

chore: checl if ci takes node from file #74

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [20]
name: E2E tests with node@${{ matrix.node_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build Next.js for E2E tests
run: pnpm build
- name: Install Playwright (used for Storybook and E2E tests)
run: npx playwright install --with-deps
- name: Run E2E tests
run: pnpm run test:e2e
# env:
# PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test-results
path: test-results/
retention-days: 30