-
Notifications
You must be signed in to change notification settings - Fork 15
executable file
·47 lines (44 loc) · 1.34 KB
/
test-e2e.yml
File metadata and controls
executable file
·47 lines (44 loc) · 1.34 KB
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
name: E2E Tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
e2e:
if: ( github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name ) && ( github.actor != 'dependabot[bot]' )
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: |
npm ci
composer install --no-dev --prefer-dist --no-progress --no-suggest
npx playwright install
- name: Make build
run: |
npm run build
- name: Make dist
run: |
npm run dist
- name: Deploy to QA
env:
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_PORT: ${{ secrets.SSH_PORT }}
SSH_HOST: ${{ secrets.SSH_HOST }}
SSH_PATH: ${{ secrets.SSH_PATH }}
run: ./bin/run-e2e-tests.sh
- name: Run E2E tests
id: run_tests
run: |
npm run e2e:run
continue-on-error: false
- name: Check test results
if: steps.run_tests.outcome != 'success'
run: exit 1