Skip to content

Update github-actions #89

Update github-actions

Update github-actions #89

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "PHPStan"
on:
pull_request:
paths:
- 'extractor/**'
- '.github/workflows/phpstan.yml'
push:
branches:
- "main"
paths:
- 'extractor/**'
- '.github/workflows/phpstan.yml'
permissions:
contents: read
jobs:
phpstan:
name: "PHPStan"
runs-on: "ubuntu-latest"
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: "Install PHP"
uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # 2.37.2
with:
coverage: "none"
php-version: "8.3"
- name: "Install dependencies"
run: "composer install"
working-directory: ./extractor
- name: "Run PHPStan"
working-directory: ./extractor
run: "vendor/bin/phpstan"