Skip to content

Merge pull request #118 from kontent-ai/Simply007-patch-1 #64

Merge pull request #118 from kontent-ai/Simply007-patch-1

Merge pull request #118 from kontent-ai/Simply007-patch-1 #64

Workflow file for this run

name: Build & Test & Report
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0', '8.1']
phpunit-versions: ['latest']
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit:${{ matrix.phpunit-versions }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Coverage
run: vendor/bin/phpunit --coverage-clover coverage.xml
- name: Codecov
uses: codecov/codecov-action@v3