Skip to content

[RELEASE] Version 1.8.0 #93

[RELEASE] Version 1.8.0

[RELEASE] Version 1.8.0 #93

Workflow file for this run

name: Code Checks
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and test application
strategy:
matrix:
php:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependencies:
- "lowest"
- "highest"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ matrix.dependencies }}
restore-keys: |
${{ runner.os }}-php-
- name: Composer install
uses: "ramsey/composer-install@v1"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "${{ matrix.composer-options }}"
- name: Run code quality checks
run: composer run-script check
- name: Run test suite
run: composer run-script test-with-coverage
if: ${{ matrix.php != '8.1' }}
- name: Upload test reports artifact
uses: actions/upload-artifact@v2
with:
name: test-reports-${{ matrix.php }}-${{ matrix.dependencies }}
path: |
.build/reports/*