Skip to content

Update github-actions (major) #75

Update github-actions (major)

Update github-actions (major) #75

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Build"
on:
pull_request:
push:
branches:
- "2.x"
permissions:
contents: read
jobs:
coding-standard:
name: "Coding Standard"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
extension-name:
- "phpstan-doctrine"
- "extension-installer"
- "phpstan-phpunit"
- "phpstan-mockery"
- "phpstan-symfony"
- "phpdoc-parser"
- "phpstan-nette"
- "phpstan-webmozart-assert"
- "phpstan-beberlei-assert"
- "phpstan-deprecation-rules"
- "phpstan-dibi"
- "phpstan-strict-rules"
- "phpstan-src"
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: "Checkout extension"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: "phpstan/${{ matrix.extension-name }}"
- name: "Checkout build-cs"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
path: "build-cs"
- name: "Install PHP"
uses: "shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1" # v2
with:
coverage: "none"
php-version: "8.2"
- name: "Install dependencies"
working-directory: "build-cs"
run: "composer install --no-interaction --no-progress"
- name: "Coding Standard"
run: "make cs"