koel/.github/workflows/e2e.yml

39 lines
1.2 KiB
YAML
Raw Normal View History

2020-12-31 23:10:24 +01:00
name: e2e
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
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: Prepare the API
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
2021-01-03 20:06:22 +01:00
- name: Yarn install and lint
run: |
yarn install
yarn lint
2020-12-31 23:10:24 +01:00
- name: Install submodule dependencies
working-directory: ./resources/assets
run: yarn install
- name: Build the client application
2021-01-03 20:06:22 +01:00
run: yarn build --no-progress
2020-12-31 23:10:24 +01:00
- name: Run E2E tests
run: |
./node_modules/kill-port/cli.js 8080
./node_modules/start-server-and-test/src/bin/start.js \
'php artisan serve --port=8080 --quiet' \
8080 \
'./node_modules/cypress/bin/cypress run --record --key ${{ secrets.CYPRESS_RECORD_KEY }}'