minor #1471 Add a missing command to build Sass files (javiereguiluz) #1
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: "Tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
fail-fast: true | |
PHPUNIT_FLAGS: "-v" | |
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit" | |
SYMFONY_DEPRECATIONS_HELPER: 17 | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: "${{ matrix.operating-system }} / PHP ${{ matrix.php-version }}" | |
runs-on: ${{ matrix.operating-system }} | |
continue-on-error: false | |
strategy: | |
matrix: | |
operating-system: ['ubuntu-latest'] | |
php-version: ['8.1', '8.2', '8.3'] | |
include: | |
- operating-system: 'macos-latest' | |
php-version: '8.1' | |
- operating-system: 'windows-latest' | |
php-version: '8.1' | |
steps: | |
- name: "Checkout code" | |
uses: actions/checkout@v3 | |
- name: "Install PHP with extensions" | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: "none" | |
extensions: "intl, mbstring, pdo_sqlite" | |
php-version: ${{ matrix.php-version }} | |
tools: composer:v2 | |
- name: "Add PHPUnit matcher" | |
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
- name: "Set composer cache directory" | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: "Cache composer" | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: "Install dependencies" | |
run: composer install --ansi --no-interaction --no-progress | |
- name: "Build Sass" | |
run: php bin/console sass:build | |
- name: "Install PHPUnit" | |
run: vendor/bin/simple-phpunit install | |
- name: "PHPUnit version" | |
run: vendor/bin/simple-phpunit --version | |
- name: "Run tests" | |
run: vendor/bin/simple-phpunit ${{ env.PHPUNIT_FLAGS }} |