Skip to content

Commit

Permalink
Merge pull request #7022 from Automattic/add/php-lint
Browse files Browse the repository at this point in the history
Add PHP syntax check CI workflow
  • Loading branch information
m1r0 authored Aug 15, 2023
2 parents 58f8745 + 6cabfbe commit 8f6ecd0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,27 @@ jobs:
name: sensei-lms-${{ github.event.pull_request.head.sha }}
path: ${{ github.workspace }}/sensei-lms/
retention-days: 7

syntax-check:
name: PHP Syntax Check
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.3, 8.1]
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v3
with:
name: sensei-lms-${{ github.event.pull_request.head.sha }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: phplint
coverage: none

- name: Check Syntax
run: phplint ./sensei-lms

0 comments on commit 8f6ecd0

Please sign in to comment.