-
Notifications
You must be signed in to change notification settings - Fork 35
48 lines (47 loc) · 1.32 KB
/
github-actions-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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