2020-12-31 22:10:24 +00:00
|
|
|
name: e2e
|
|
|
|
on: [ push ]
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
2021-01-04 09:33:57 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
containers: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
|
2020-12-31 22:10:24 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Set up PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: 7.4
|
|
|
|
tools: composer:v2
|
2021-01-04 09:33:57 +00:00
|
|
|
- name: Install PHP dependencies
|
2020-12-31 22:10:24 +00:00
|
|
|
run: |
|
|
|
|
composer install --prefer-dist --no-interaction --no-scripts --no-progress
|
|
|
|
php artisan key:generate --quiet
|
|
|
|
- name: Set up Node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: 14
|
|
|
|
- name: Install submodule dependencies
|
|
|
|
working-directory: ./resources/assets
|
|
|
|
run: yarn install
|
2021-01-04 09:33:57 +00:00
|
|
|
- name: Yarn install and lint
|
|
|
|
run: yarn install && yarn lint
|
2020-12-31 22:10:24 +00:00
|
|
|
- name: Run E2E tests
|
2021-01-04 09:33:57 +00:00
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
with:
|
|
|
|
build: yarn build --no-progress
|
|
|
|
start: php artisan serve --port=8080 --quiet
|
|
|
|
wait-on: 'http://localhost:8080'
|
|
|
|
quiet: true
|
|
|
|
record: true
|
|
|
|
parallel: true
|
|
|
|
env:
|
|
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|