mirror of
https://github.com/danog/Valinor.git
synced 2024-12-13 09:37:34 +01:00
4492ef73dc
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.10 to 3.0.11. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3.0.10...v3.0.11) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Coding Standards & Static Analysis
|
|
on: [push, pull_request]
|
|
jobs:
|
|
qa:
|
|
name: Quality Assurance
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
php-version: '8.1'
|
|
php-extensions: yaml
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ env.php-version }}
|
|
extensions: ${{ env.php-extensions }}
|
|
ini-values: zend.assertions=1
|
|
|
|
- name: Creating var directory
|
|
run: mkdir -p var/cache
|
|
|
|
- name: Cache QA results
|
|
uses: actions/cache@v3.0.11
|
|
with:
|
|
path: var/cache
|
|
key: ${{ runner.os }}-qa-${{ hashFiles('composer.lock') }}-${{ hashFiles('.github/workflows/quality-assurance.yml') }}
|
|
|
|
- name: Checking Composer
|
|
run: composer validate --strict
|
|
|
|
- uses: "ramsey/composer-install@v2"
|
|
|
|
- name: Running PHPStan
|
|
run: php vendor/bin/phpstan
|
|
|
|
- name: Running Psalm
|
|
run: php vendor/bin/psalm
|
|
|
|
- name: Running PHP Coding Standards Fixer
|
|
run: php vendor/bin/php-cs-fixer fix --dry-run
|
|
|
|
- name: Running Rector
|
|
run: php vendor/bin/rector --dry-run
|