koel/.github/workflows/e2e.yml

43 lines
1.3 KiB
YAML

name: e2e
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
containers: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
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
- name: Install PHP dependencies
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
- name: Yarn install and lint
run: yarn install && yarn lint
- name: Run E2E tests
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 }}