Skip to content

Commit

Permalink
Add syntax check (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Jan 10, 2025
1 parent 7a61abb commit 8a86304
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/back-end.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: "parallel-lint debug/ divi-child/ mu-plugins/ wp-config/"

0 comments on commit 8a86304

Please sign in to comment.