forked from superdesk/superdesk-planning
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.14 KB
/
ci-e2e.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
name: "CI-E2E"
on: [push, pull_request]
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['14']
e2e: ['a', 'b']
env:
E2E: true
TZ: Australia/Sydney
CYPRESS_SCREENSHOTS_FOLDER: /tmp/cypress
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: |
npm install
npm build
docker compose up -d
./ci-wait-for-services.sh
working-directory: ./e2e
- name: E2E Suite A
if: matrix.e2e == 'a'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/events/*.cy.ts"
- name: E2E Suite B
if: matrix.e2e == 'b'
working-directory: ./e2e
run: npm run cypress-ci -- --spec "cypress/e2e/!(events)/*.cy.ts|cypress/e2e/workqueue.cy.ts"
- name: Upload screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: screenshots-e2e-${{ matrix.e2e }}
path: /tmp/cypress/**/*.png