Skip to content

Improved error handling #777

Improved error handling

Improved error handling #777

Workflow file for this run

name: PHP actions
on: push
jobs:
composer:
name: Composer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
code:
name: Code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: PHP VarDump Check Action
uses: umutphp/php-var-dump-check-action@v2
with:
exclude: 'vendor,tests'
- name: Check PHP syntax errors
uses: overtrue/[email protected]
- name: DevSkim
uses: microsoft/DevSkim-Action@v1
- name: codecov.io/validate
run: curl --data-binary @codecov.yml https://codecov.io/validate
security:
name: Security
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: PHP Security Checker
uses: StephaneBour/[email protected]
with:
composer-lock: './composer.lock'