save #142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |