Replace SCSS with Tailwind CSS #1449
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: Database tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master # triggers on pushes that contain changes in master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Set PHP version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: xdebug | |
- name: Shutdown Ubuntu MySQL (SUDO) | |
run: sudo service mysql stop | |
- name: Set up MySQL | |
uses: mirromutth/mysql-action@v1.1 | |
with: | |
mysql root password: ${{ secrets.DBPASS }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --optimize-autoloader | |
env: | |
APP_ENV: dev | |
- name: Generate sample environment settings for build | |
env: | |
DBPASS: ${{ secrets.DBPASS }} | |
run: | | |
cat > .env.local.php << EOL | |
<?php | |
return array ( | |
'APP_DEBUG' => '0', | |
'APP_ENV' => 'dev', | |
'APP_SECRET' => '6badc0fca270ab84a00a67226f9e2554', | |
'USERPROVIDER_KEY' => 'ThisIsNotSoSecret', | |
'DATABASE_URL' => 'mysql://root:${DBPASS}@127.0.0.1:3306/kiwi', | |
'MAILER_URL' => 'null://localhost', | |
'DEFAULT_FROM' => 'foo@bar.com', | |
); | |
EOL | |
- name: Create database | |
run: php bin/console doctrine:database:create -n | |
- name: Run migrations up | |
run: php bin/console doctrine:migrations:migrate | |
- name: Check whether they match the entity definition | |
run: | | |
! php bin/console doctrine:migrations:diff | |
- name: Load testing data | |
run: php bin/console doctrine:fixtures:load -n | |
- name: Run migrations down | |
run: php bin/console doctrine:migrations:migrate first | |