EWPP-4991: Ensure PHP8.3 compatibility. #561
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.3"] | |
composer_command: ["composer install"] | |
env: | |
PHP_VERSION: ${{ matrix.php_version }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Install Docker Compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
- name: Start services with Docker Compose | |
run: docker-compose up -d | |
- name: Build dependencies | |
run: docker-compose exec -T php ${{ matrix.composer_command }} | |
- name: Run tests | |
run: docker-compose exec -T php ./vendor/bin/phpunit | |
code-sniffer: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php_version: ["8.1", "8.3"] | |
env: | |
PHP_VERSION: ${{ matrix.php_version }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Install Docker Compose | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker-compose | |
- name: Start services with Docker Compose | |
run: docker-compose up -d | |
- name: Install dependencies | |
run: docker-compose exec -T php composer install | |
- name: Run code sniffer | |
run: docker-compose exec -T php ./vendor/bin/grumphp run |