Skip to content

Add syntax check

Add syntax check #2

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: "Back-end"
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"
# Add [skip ci] to commit message to skip CI.
permissions: {}
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
env:
COMPOSER_FUND: "0"
jobs:
syntax_errors:
name: "Syntax errors"
runs-on: "ubuntu-22.04"
timeout-minutes: 1
steps:
-
name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
coverage: "none"
tools: "parallel-lint"
-
name: "Checkout repository"
uses: "actions/checkout@v4"
-
name: "Check source code for syntax errors"
run: "composer exec --no-interaction -- parallel-lint debug/ divi-child/ mu-plugins/ wp-config/"