Skip to content

feature / cypress

feature / cypress #8

Workflow file for this run

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: 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
with:
name: videos and screenshots
path: |
./cypress/videos
./cypress/screenshots