ci: Adding compatibility with multiple versions of dbal #14
Workflow file for this run
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: | |
- master | |
jobs: | |
qa: | |
strategy: | |
matrix: | |
php: [ '8.1','8.2','8.3','8.4' ] | |
lowest: [ '0','1' ] | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, intl | |
coverage: xdebug | |
tools: composer:v2 | |
- uses: actions/checkout@v3 | |
- name: Download phing | |
run: mkdir bin && curl -L -C - -s -S -o bin/phing https://github.com/phingofficial/phing/releases/download/3.0.0-rc6/phing-3.0.0-RC6.phar && chmod +x bin/phing | |
- name: composer:validate | |
run: bin/phing composer:validate | |
- name: Composer update | |
run: composer update --ansi --no-interaction | |
env: | |
COMPOSER_PREFER_LOWEST: ${{ matrix.lowest }} | |
- name: composer:install | |
run: bin/phing composer:install | |
- name: php:lint | |
run: bin/phing php:lint | |
- name: cs:check | |
run: bin/phing cs:check | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: 1 | |
- name: phpstan:analyze | |
run: bin/phing phpstan:analyze | |
- uses: isbang/[email protected] | |
with: | |
compose-file: "./compose.yaml" | |
down-flags: "--volumes" | |
- name: phpunit:run | |
run: bin/phing phpunit:run |