Skip to content

Support 'safe_load' directive #10

Support 'safe_load' directive

Support 'safe_load' directive #10

Workflow file for this run

name: PHPUnit
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- 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: PHP info
run: php -v && composer -V
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPUnit test suite
run: composer run-script test
- name: Run PHP CS Fixer
run: composer run-script php-cs-fixer -- --dry-run