Add .gitea/workflows/quality.yml

This commit is contained in:
Jamie Schouten 2024-09-13 22:46:28 +00:00
commit 3b7eb7c8e2

View File

@ -0,0 +1,35 @@
on:
workflow_call:
secrets:
username:
required: false
type: string
default: ${{ secrets.REGISTRY_USERNAME }}
password:
required: false
type: string
default: ${{ secrets.REGISTRY_PASSWORD }}
jobs:
quality:
runs-on: ubuntu-24.04
container:
image: git.qlic.nl/qlic/quality:latest
credentials:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: composer install
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse
- name: Run php cs fixer
run: ./vendor/bin/php-cs-fixer fix --diff --dry-run
- name: Run audit
run: composer audit