Testimonials #98
Workflow file for this run
This file contains 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: E2E Tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
env: | |
# this node version should match the project's settings in Vercel: | |
# https://vercel.com/docs/functions/runtimes/node-js#node.js-version | |
NODE_VERSION: "20.x" | |
# set the node environment so that `next build` uses the correct settings | |
NODE_ENV: "test" | |
jobs: | |
test-all: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: | | |
sudo prlimit --pid $$ --nproc=65536:65536 | |
sudo prlimit --pid $$ --nofile=524288:524288 | |
ulimit -a | |
npx playwright test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright/html-report/ | |
retention-days: 7 |