Skip to content

Fix the mixup of DPA_TYPE_MODEL_SURF and DPA_TYPE_IN_SURF_AGREEMENT #471

Fix the mixup of DPA_TYPE_MODEL_SURF and DPA_TYPE_IN_SURF_AGREEMENT

Fix the mixup of DPA_TYPE_MODEL_SURF and DPA_TYPE_IN_SURF_AGREEMENT #471

name: Run integration tests
on: [pull_request]
jobs:
build:
# Due to the cgroups 1 issue on the openconext container, we do not
# use the new ubuntu platform yet. As they started using cgroups v2
runs-on: ubuntu-20.04
timeout-minutes: 30
env:
DOCKER_COMPOSE: docker-compose -f docker-compose.yml -f docker-compose-ci.yml
DOCKER_COMPOSE_PHP_FPM: docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T php-fpm
DOCKER_COMPOSE_OPENCONEXT: docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T openconext
DOCKER_COMPOSE_CYPRESS: docker-compose -f docker-compose.yml -f docker-compose-ci.yml exec -T cypress
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Start the docker images for testing
run: ${DOCKER_COMPOSE} up -d
- name: Import the certificate on the Cypress docker machine
run: ${DOCKER_COMPOSE_CYPRESS} sh /e2e/docker/conf/cypress_import_cert.sh
- name: Run composer
run: |
${DOCKER_COMPOSE_PHP_FPM} /usr/local/bin/composer install -n --prefer-dist -o --ignore-platform-reqs
env:
SYMFONY_ENV: dev
- name: Run yarn
run: |
docker run -v ${PWD}:/var/www/html -w /var/www/html node:14 yarn install
env:
SYMFONY_ENV: dev
- name: Create front end dependencies (yarn encore production)
run: |
docker run -v ${PWD}:/var/www/html -w /var/www/html node:14 yarn run encore production
env:
SYMFONY_ENV: dev
- name: Get the database up and running
run: |
${DOCKER_COMPOSE_PHP_FPM} bin/console doctrine:migrations:migrate
env:
SYMFONY_ENV: dev
- name: Remove leftover files
run: |
${DOCKER_COMPOSE_PHP_FPM} /bin/rm -rf /tmp/sp-dashboard/ /tmp/sp-dashboard-sessions/
- name: Make the log and cache dir writable
run: |
${DOCKER_COMPOSE_PHP_FPM} chmod 777 /var/www/html/var/ -R
- name: Wait until the spdashboard is accessable
run: |
${DOCKER_COMPOSE_OPENCONEXT} sh /usr/local/sbin/spdup.sh
- name: Run Copy Paste Detector
run: |
${DOCKER_COMPOSE_PHP_FPM} sh -c 'composer jscpd'
continue-on-error: true
- name: Run CI tests
run: |
${DOCKER_COMPOSE_PHP_FPM} sh -c 'composer check'
- name: Run JS tests
run: |
${DOCKER_COMPOSE_PHP_FPM} sh -c 'composer jest'
- name: Run Cypress tests
run: |
${DOCKER_COMPOSE_CYPRESS} cypress run --browser chrome -C ./ci/qa/cypress.config.ts
continue-on-error: true