-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.3 KB
/
test.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
name: PHP tests
on: [pull_request]
jobs:
# similar job as below. Editing this one don't forget the one below
unit-system-e2e-tests:
runs-on: ubuntu-latest
strategy:
matrix:
presta-versions: ['1.7.8.0-7.4', 'latest']
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Cache vendor folder
uses: actions/cache@v1
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
- name: Cache composer folder
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php-composer-cache
- run: sudo composer self-update 2.2.11
- run: cp .env.dist .env
- run: composer install
# integration tests
- run: make run-tests-github-actions ps_instance=${{ matrix.presta-versions }}
# e2e tests
- run: sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
- run: npm install
- run: npx cypress run
- name: Archive videos and screenshots
uses: actions/upload-artifact@v3
if: always()
with:
name: videos and screenshots
path: |
./cypress/videos
./cypress/screenshots