Skip to content

Merge pull request #1 from IvanSerevko/#137 #2

Merge pull request #1 from IvanSerevko/#137

Merge pull request #1 from IvanSerevko/#137 #2

Workflow file for this run

name: Build and Test CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ["8.0", "8.1"]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-source --no-interaction
- name: Test with phpunit
run: vendor/bin/phpunit tests