tasks:

  - use: up
    short: Starts the CI stack
    run:
      - docker-compose up -d gotenberg

  - use: down
    short: Stops the CI stack
    run:
      - docker-compose down

  - use: lint
    shorts: Runs linter inside a container
    run:
      - docker-compose run --rm -T php composer install
      - docker-compose run --rm -T php composer run cs-fix
      - docker-compose run --rm -T php composer run cs-check
      - docker-compose run --rm -T php composer run phpstan

  - use: tests
    short: Runs tests inside a container
    run:
      - docker-compose run --rm -T php composer run phpunit