Skip to content

Merge pull request #8 from newmatter/1.1.3-php8-fix #32

Merge pull request #8 from newmatter/1.1.3-php8-fix

Merge pull request #8 from newmatter/1.1.3-php8-fix #32

Workflow file for this run

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