Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 461 Bytes

gitlab-ci.md

File metadata and controls

26 lines (19 loc) · 461 Bytes

Gitlab CI

Contributed by RVxLab.

The example below demonstrates how phpqa can be used in the Gitlab CI.

# .gitlab-ci.yml
image: php:8.2-fpm-alpine3.15

stages:
    - style

php-cs-fixer:
    stage: style
    image: jakzal/phpqa:php8.2-alpine
    script:
        - php-cs-fixer fix --dry-run --stop-on-violation

phpstan:
    stage: style
    image: jakzal/phpqa:php8.2-alpine
    script:
      - phpstan analyze