Skip to content

Bump cross-spawn from 7.0.3 to 7.0.6 in /tests/e2e #652

Bump cross-spawn from 7.0.3 to 7.0.6 in /tests/e2e

Bump cross-spawn from 7.0.3 to 7.0.6 in /tests/e2e #652

Workflow file for this run

name: run cypress
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# run at 6 hour UTC
schedule:
- cron: "0 6 * * *"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
php: [php72]
env:
PROD_PHP: php72
DOCKER_COMPOSE: docker compose -f docker-compose.yml -f docker-compose-${{matrix.php}}.yml
steps:
- name: Checkout
uses: actions/checkout@master
- name: chown some dirs
run: |
mkdir tmp vendor && sudo chown -R 33 app/ theme/ web/ tmp/ vendor/
- name: Build Docker environmnent
if: always()
run: |
cd docker &&
${DOCKER_COMPOSE} up -d --build &&
docker compose exec -T --user www-data php-fpm.vm.openconext.org bash -c '
SYMFONY_ENV=ci composer install --prefer-dist -n -o --ignore-platform-reqs && \
./app/console cache:clear --env=ci && \
cd theme && CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile && EB_THEME=skeune yarn build
'
- name: Run Cypress integration tests
if: always()
run: |
cd docker && \
docker compose exec -T --user www-data php-fpm.vm.openconext.org bash -c '
EB_THEME=skeune ./theme/scripts/prepare-test.js
' && \
docker compose exec -T cypress bash -c '
cd e2e && yarn install && cypress run --spec cypress/integration/skeune/**/*.spec.js,cypress/integration/shared/*.spec.js --browser=chrome --headless
' && \
docker compose exec -T --user www-data php-fpm.vm.openconext.org bash -c '
EB_THEME=openconext ./theme/scripts/prepare-test.js
' && \
docker compose exec -T cypress bash -c '
cd e2e && cypress run --spec cypress/integration/openconext/**/*.spec.js --browser=chrome --headless
'