parent
cbe60209e6
commit
a08f93c188
39
.github/workflows/coding-standards.yml
vendored
Normal file
39
.github/workflows/coding-standards.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: Run coding standards checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- production
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
phpunit:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
name: "Run coding standards checks"
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: |
|
||||
~/.composer/cache/files
|
||||
web/core
|
||||
web/modules/constrib
|
||||
web/themes/contrib
|
||||
vendor
|
||||
key: dependencies-composer-${{ hashFiles('composer.json') }}
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-interaction --no-suggest
|
||||
|
||||
- name: Run checks
|
||||
run: make phpcs
|
39
.github/workflows/static-code-analysis.yml
vendored
Normal file
39
.github/workflows/static-code-analysis.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: Static analysis with PHPStan
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- production
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
phpunit:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
name: Static analysis with PHPStan
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: |
|
||||
~/.composer/cache/files
|
||||
web/core
|
||||
web/modules/constrib
|
||||
web/themes/contrib
|
||||
vendor
|
||||
key: dependencies-composer-${{ hashFiles('composer.json') }}
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-interaction --no-suggest
|
||||
|
||||
- name: Run checks
|
||||
run: make phpstan
|
Loading…
Reference in a new issue