-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
- Loading branch information
1 parent
6a1c2d4
commit 63b26a9
Showing
3 changed files
with
43 additions
and
49 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 |
---|---|---|
@@ -1,49 +1,49 @@ | ||
name: Lint and analyse php files | ||
name: Lint and analyse PHP files | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint-php: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use php 7.1 | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP 7.1 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.1 | ||
tools: composer:v2 | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
- name: Cache module | ||
uses: actions/cache@v3 | ||
run: composer validate --strict | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
path: ~/.composer/cache/ | ||
key: composer-cache | ||
- name: Install dependencies | ||
run: composer install | ||
dependency-versions: highest | ||
|
||
- name: Lint files | ||
run: composer run phpcs | ||
|
||
analyse-php: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use php 7.1 | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP 7.1 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 7.1 | ||
tools: composer:v2 | ||
- name: Cache module | ||
uses: actions/cache@v3 | ||
|
||
- name: Install Composer dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
path: ~/.composer/cache/ | ||
key: composer-cache | ||
- name: Install dependencies | ||
run: composer install | ||
dependency-versions: highest | ||
|
||
- name: Analyse files | ||
run: composer run phpstan |
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
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