EWPP-4100: Add composer-patches v2 and php8.2 to matrix. #533
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: ci | |
on: [push, pull_request] | |
jobs: | |
automated-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php_version: ["8.1", "8.2"] | |
composer_command: ["composer install", "composer update --prefer-lowest"] | |
env: | |
PHP_VERSION: ${{ matrix.php_version }} | |
steps: | |
- name: clone | |
uses: actions/checkout@v2 | |
- run: docker-compose up -d | |
- name: build | |
run: docker-compose exec -T php ${{ matrix.composer_command }} | |
- name: test | |
run: docker-compose exec -T php ./vendor/bin/phpunit | |
code-sniffer: | |
runs-on: ubuntu-latest | |
env: | |
PHP_VERSION: "8.1" | |
steps: | |
- name: clone | |
uses: actions/checkout@v2 | |
- run: docker-compose up -d | |
- name: build | |
run: docker-compose exec -T php composer install | |
- name: test | |
run: docker-compose exec -T php ./vendor/bin/grumphp run |