added seo buttons #50
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: phpunit | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- dev | |
- master | |
jobs: | |
phpunit: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['8.2'] | |
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 10 | |
- name: Install Yarn dependencies | |
run: yarn install | |
- name: Compile assets | |
run: yarn encore dev | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- name: Install Composer dependencies | |
run: composer install -o | |
- name: Create test database | |
run: php bin/console doctrine:database:create --env=test | |
- name: Create database schema | |
run: php bin/console doctrine:schema:create --env=test | |
- name: Load database fixtures | |
run: php bin/console doctrine:fixtures:load -n --env=test | |
- name: Run phpunit test suite | |
run: php vendor/bin/phpunit |