Skip to content

Fix/ae 2031 cypress tests fix #17

Fix/ae 2031 cypress tests fix

Fix/ae 2031 cypress tests fix #17

Workflow file for this run

name: E2E Cypress CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Docker Compose Preparations
run: mkdir -p /home/runner/work/ara-etp/ara-etp/etp-core/docker/smtp/received-emails
- name: Docker Compose
working-directory: e2e-tests/cypress
run: |
docker compose up -d --no-TTY
# ./start-e2e.sh
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
cache-dependency-path: e2e-tests/cypress/package-lock.json
- name: Cypress run
uses: cypress-io/github-action@v6
with:
working-directory: e2e-tests/cypress
start: npm run cypress:run
wait-on: 'https://localhost:3009'
format:
runs-on: ubuntu-latest
defaults:
run:
working-directory: e2e-tests/cypress
strategy:
matrix:
node-version: [ 18.x, 20.x ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: e2e-tests/cypress/package-lock.json
- run: npm ci
- run: npm run format:check