version: 2

jobs:
  build:
    docker:
      - image: circleci/php:7.4
    steps:
      - checkout
      - run: composer install --prefer-source --no-interaction
      - run: ./vendor/bin/phpunit
      - run: ./vendor/bin/phpcs --standard=phpcs.xml -p

workflows:
  version: 2
  test:
    jobs:
      - build

