mirror of
https://gh.wpcy.net/https://github.com/szepeviktor/wordpress-website-lifecycle.git
synced 2026-04-23 03:12:14 +08:00
39 lines
969 B
YAML
39 lines
969 B
YAML
# 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: "parallel-lint debug/ divi-child/ mu-plugins/ wp-config/"
|