quality/.gitea/workflows/quality.yml
2024-09-14 13:42:56 +02:00

33 lines
774 B
YAML

on:
workflow_call:
inputs:
username:
required: false
type: string
default: ${{ vars.REGISTRY_USERNAME }}
password:
required: false
type: string
default: ${{ vars.REGISTRY_PASSWORD }}
jobs:
quality:
runs-on: ubuntu-24.04
container:
image: git.qlic.nl/qlic/quality:latest
credentials:
username: ${{ inputs.username }}
password: ${{ inputs.password }}
steps:
- name: Setup composer
uses: https://git.qlic.nl/actions/setup-composer@main
- 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