feature / cypress #13
Workflow file for this run
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: 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 |