Skip to content

Draft: test(front): add tests in the front server #2168

Draft: test(front): add tests in the front server

Draft: test(front): add tests in the front server #2168

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
container: cypress/browsers:node-16.18.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: 'server/.nvmrc'
- name: Install dependencies
run: npm ci
- name: Build
run: npx turbo format:check lint:check test build
- name: Cypress.io
# uses: cypress-io/github-action@ca3f666049f4ac2267a75de769535a7cbdc7bfd7
uses: cypress-io/github-action@v5.0.8
with:
install: false
working-directory: ./server/apps/frontend
wait-on: 'http://localhost:3000'
start: npm run start:server:local
record: false
browser: chrome
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: ./server/apps/frontend/cypress/screenshots
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-snapshots
path: ./server/apps/frontend/cypress/snapshots