[DB] Move view refresh to a new migration as it relies on subsequent … #313
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Tests (ex Dusk) | |
on: [ push, pull_request ] | |
jobs: | |
ci-ex-dusk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e | |
with: | |
php-version: '8.0' | |
- uses: actions/checkout@v2 | |
- uses: shogo82148/actions-setup-mysql@v1 | |
with: | |
mysql-version: '8.0' | |
- run: mysql -uroot -h127.0.0.1 -e 'CREATE DATABASE myapp_test' | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.ci', '.env');" | |
- name: Install bgpq3 | |
run: sudo apt-get install bgpq3 | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Directory Permissions | |
run: chmod -R 777 storage bootstrap/cache | |
- name: Create Database | |
run: | | |
cat data/ci/ci_test_db.sql | mysql --default-character-set=utf8mb4 -h 127.0.0.1 -u root myapp_test | |
- name: Set up php server | |
run: | | |
php ./artisan serve &>php-built-in.log & | |
- name: Execute tests (Unit and Feature tests) via PHPUnit | |
run: vendor/bin/phpunit --testsuite 'Docstore Test Suite,IXP Manager Test Suite' | |