Test against php 8.1, 8.2 and 8.3 #51
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: Run Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: ['ubuntu-latest'] | |
php-versions: | |
- '7.3' | |
- '7.4' | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
- '8.3' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Cache composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php-${{ matrix.php-versions }}- | |
- name: Validate composer configuration | |
run: | | |
composer validate | |
- name: Install dependencies | |
run: | | |
composer install --no-progress | |
- name: Run tests | |
run: | | |
composer run-script test | |
# test-hhvm: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Setup HHVM | |
# uses: azjezz/setup-hhvm@v1 | |
# with: | |
# version: latest | |
# debug: false | |
# - name: Cache composer packages | |
# id: composer-cache | |
# uses: actions/cache@v2 | |
# with: | |
# path: vendor | |
# key: ${{ runner.os }}-hhvm-${{ hashFiles('**/composer.lock') }} | |
# restore-keys: | | |
# ${{ runner.os }}-hhvm- | |
# - name: Validate composer configuration | |
# run: | | |
# composer validate | |
# - name: Install dependencies | |
# run: | | |
# composer install --no-progress | |
# - name: Run tests | |
# run: | | |
# composer run-script test |