Skip to content

Create psalm.yml

Create psalm.yml #12

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "feature/*" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
php-stan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build image
run: docker build -t phpstan:latest .
- name: Run PHPstan with github
# continue-on-error: true
run: |
docker run --rm \
-v ${{ github.workspace }}:/app \
phpstan:latest \
vendor/bin/phpstan analyze --error-format=github /app