Skip to content

V4 docs and setup

V4 docs and setup #265

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: "Static Analysis"
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"
permissions:
contents: "read"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
static_analysis:
name: "Static Analysis"
runs-on: "ubuntu-22.04"
steps:
-
name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.0"
coverage: "none"
-
name: "Checkout repository"
uses: "actions/checkout@v3"
-
name: "Validate Composer configuration"
run: "composer validate --no-interaction --strict"
-
name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
-
name: "Check PSR-4 mapping"
run: "composer dump-autoload --no-interaction --optimize --strict-psr"
-
name: "Run PHPHStan"
run: "composer run stan"
-
name: "Run PHP Code Sniffer"
run: "composer run cs"