-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PES-2401: PHP parallel lint pipeline
- Loading branch information
1 parent
0310af9
commit e2a97f9
Showing
1 changed file
with
35 additions
and
0 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,35 @@ | ||
name: PHP parallel lint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
jobs: | ||
php-parallel-lint: | ||
runs-on: ubuntu-24.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: mbstring, intl | ||
coverage: none | ||
|
||
- name: php version | ||
run: php -v | ||
|
||
- name: Install php-parallel-lint | ||
run: composer create-project php-parallel-lint/php-parallel-lint ./temp/php-parallel-lint --no-dev | ||
|
||
- name: Run PHP parallel lint | ||
run: ./temp/php-parallel-lint/parallel-lint . --exclude ./tests |