-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure config.php is compatible with our supported PHP versions
- Loading branch information
1 parent
b89c0ea
commit 0c5a561
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Validate that the example config.php has valid syntax | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'config.php' | ||
|
||
jobs: | ||
validate-config: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
fetch-depth: 1 | ||
- name: Set up PHP 8 | ||
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | ||
with: | ||
php-version: 8.3 | ||
- name: Validate config.php syntax is compatible with PHP 8 | ||
run: php -l ./config.php | ||
- name: Set up PHP 5.3 | ||
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1 | ||
with: | ||
php-version: 5.3 | ||
- name: Validate config.php syntax is compatible with PHP 5.3 | ||
run: php -l ./config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters