koel/.github/workflows/e2e.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2022-05-13 12:57:27 +00:00
name: End to End Tests
2021-07-26 20:59:33 +00:00
on:
push:
branches:
- master
2022-07-27 15:32:36 +00:00
# @fixme Tmp.disable until ready
# - next
pull_request:
workflow_dispatch:
2020-12-31 22:10:24 +00:00
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
containers: [ 1, 2 ]
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:
2022-07-29 07:53:54 +00:00
php-version: 8.1
2020-12-31 22:10:24 +00:00
tools: composer:v2
extensions: pdo_sqlite
- name: Install PHP dependencies
uses: ramsey/composer-install@v2
2020-12-31 22:10:24 +00:00
with:
composer-options: --prefer-dist
- name: Generate app key
run: php artisan key:generate --quiet
2021-12-30 19:09:41 +00:00
- name: Set up Node
uses: actions/setup-node@v2
with:
2021-12-30 19:09:41 +00:00
node-version: '14'
2020-12-31 22:10:24 +00:00
- 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 }}