Release 1.1.3 #26
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 | |
jobs: | |
build: | |
strategy: | |
max-parallel: 1 | |
matrix: | |
operating-system: [ubuntu-latest, ubuntu-20.04] | |
php-versions: ["7.4", "8.1", "8.2"] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Update lock file | |
run: composer update | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install --prefer-dist --no-progress | |
- name: Run test suites | |
run: ./vendor/bin/phpunit --coverage-clover coverage.xml | |
env: | |
CC_API_KEY: ${{ secrets.CC_API_KEY }} | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v1.1.1 | |
with: | |
file: ./coverage.xml |