Skip to content

Publish code examples #3

Publish code examples

Publish code examples #3

name: Code Analysis
on:
pull_request: null
push:
branches:
- main
jobs:
main_project:
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
actions:
- name: "PHPStan"
run: vendor/bin/phpstan analyze --ansi
- name: "Coding Standards"
run: vendor/bin/ecs check --ansi
- name: "Rector"
run: vendor/bin/rector process --dry-run --ansi
- name: "Composer validate"
run: composer validate --strict --ansi
- name: "Book generation"
run: vendor/bin/generate-manuscript --dry-run --ansi
- name: "Check subprojects"
run: vendor/bin/generate-manuscript check --ansi
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Add HTTP basic auth credentials
run: echo '${{ secrets.COMPOSER_AUTH }}' > $GITHUB_WORKSPACE/auth.json
- name: Install project Composer dependencies
uses: "ramsey/composer-install@v1"
- run: ${{ matrix.actions.run }}