-
-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (33 loc) · 1003 Bytes
/
back-end.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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/"