Skip to content

Merge pull request #38 from deining/fix-markdown #8

Merge pull request #38 from deining/fix-markdown

Merge pull request #38 from deining/fix-markdown #8

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
php: ['8.1', '8.2', '8.3']
include:
- php: '8.1'
send-to-scrutinizer: 'yes'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with fail-fast
uses: shivammathur/setup-php@v2
with:
send-to-scrutinizer: 'no'
phpunit-flags: '--no-coverage'
php-version: ${{ matrix.php }}
coverage: xdebug
env:
fail-fast: true
- 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-${{ 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 --no-suggest
- name: Run test suite
run: |
composer run stan
sudo composer run test