Skip to content

using actions

using actions #1073

Workflow file for this run

name: E2E Testing
on: [push]
jobs:
e2e:
runs-on: ubuntu-latest
env:
NEXT_TELEMETRY_DISABLED: 1
strategy:
matrix:
node-version: [18.x, 20.x]
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
steps:
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: pnpm install
- name: Install Playwright
run: pnpm deps
- name: Build Project for Testing
run: yarn build
- name: Run Playwright
run: pnpm test