Skip to content

Cypress: added missing mocks #412

Cypress: added missing mocks

Cypress: added missing mocks #412

name: Cypress & Jest CI
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
node-version: [16.x]
os: [ubuntu-latest]
experimental: [false]
# include:
# - os: windows-latest
# experimental: true
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
defaults:
run:
working-directory: ./e2e
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install -y libsdl-pango-dev
fi
shell: bash
- name: Install node_modules
working-directory: ./
run: npm ci
- name: Install e2e node_modules
run: npm ci
- name: Build E2E version
run: npm run build
- name: Run & wait for server
run: npm run server & npx wait-on http://localhost:8080
- name: Cypress tests
run: npm run cypress:run --config video=false
- name: Integration tests
working-directory: ./
run: npm test