Skip to content

Test/add test e2e

Test/add test e2e #173

Workflow file for this run

name: Main CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-backend:
name: Build Backend
uses: ./.github/workflows/build.yml
with:
image: ghcr.io/dnum-mi/referentiel-applications/backend
context: ./server
build-frontend:
name: Build Frontend
uses: ./.github/workflows/build.yml
with:
image: ghcr.io/dnum-mi/referentiel-applications/frontend
context: ./client
test-format:
name: Test Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Prettier check
run: |
npm ci
npm run format-check
test-e2e:
name: End-to-End Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
npm ci
- name: Run Cypress tests
run: |
npx cypress run