forked from mollie/PrestaShop
-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (63 loc) · 2.1 KB
/
E2E_On_PR.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Cypress test run MOLLIE
on:
pull_request:
types: [opened, reopened]
branches: [master, v*.*.*]
jobs:
Cypress-E2E:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- prestashop: 'PS1784'
make: 'make e2eh1784'
demoshop: 'demoshop1784'
port: '8002'
yml: 'docker-compose.e2e.1784.yml'
url: 'https://demoshop1784.eu.ngrok.io'
test_spec: '**/cypress/integration/ps1784/**'
env:
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- run: wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
shell: bash
- run: unzip -qq -o ngrok-stable-linux-amd64.zip
shell: bash
- run: ./ngrok authtoken ${{ secrets.NGROK_TOKEN }}
shell: bash
- run: ./ngrok http -region=eu -subdomain=${{ matrix.demoshop }} ${{ matrix.port }} > ngrok.log &
shell: bash
- name: Install composer
run: composer i
- name: Install package
run: |
npm ci
npm update
npx browserslist@latest --update-db
- name: ${{ matrix.prestashop }} installing / Module Install and Uninstall testing
run: |
${{ matrix.make }}
- name: Running ${{ matrix.prestashop }} Cypress tests
uses: cypress-io/github-action@v5.0.5
with:
spec: ${{ matrix.test_spec }}
browser: chrome
env:
CYPRESS_MOLLIE_TEST_API_KEY: ${{ secrets.MOLLIE_TEST_API_KEY }}
CYPRESS_MOLLIE_TEST_PROFILE_ID: ${{ secrets.MOLLIE_TEST_PROFILE_ID }}
CYPRESS_baseUrl: ${{ matrix.url }}
# - run: |
# docker-compose -f ${{ matrix.yml }} up --force-recreate --exit-code-from cypress
#--parallel --record --key
- name: Archive videos and screenshots
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: videos_screenshots
retention-days: 2
path: |
cypress/videos
cypress/screenshots