# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2.1

jobs:
  build-php74:
    docker:
      - image: circleci/php:7.4-node-browsers
    steps:
      - checkout
      - run: sudo apt update
      - restore_cache:
          keys:
            - v74-dependencies-{{ checksum "composer.json" }}
            - v74-dependencies-
      - run: composer update --prefer-lowest --prefer-stable --no-interaction
      - save_cache:
          key: v74-dependencies-{{ checksum "composer.json" }}
          paths:
            - ./vendor
      - run: ./vendor/bin/phpunit
  build-php80:
    docker:
      - image: circleci/php:8.0-node-browsers
    steps:
      - checkout
      - run: sudo apt update
      - restore_cache:
          keys:
            - v80-dependencies-{{ checksum "composer.json" }}
            - v80-dependencies-
      - run: composer update --no-interaction
      - save_cache:
          key: v80-dependencies-{{ checksum "composer.json" }}
          paths:
            - ./vendor
      - run: ./vendor/bin/phpunit

workflows:
  version: 2
  test-php-versions:
    jobs:
      - build-php74
      - build-php80

# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2.1

jobs:
  build-php74:
    docker:
      - image: circleci/php:7.4-node-browsers
    steps:
      - checkout
      - run: sudo apt update
      - restore_cache:
          keys:
            - v74-dependencies-{{ checksum "composer.json" }}
            - v74-dependencies-
      - run: composer update --prefer-lowest --prefer-stable --no-interaction
      - save_cache:
          key: v74-dependencies-{{ checksum "composer.json" }}
          paths:
            - ./vendor
      - run: ./vendor/bin/phpunit --dont-report-useless-tests
  build-php80:
    docker:
      - image: circleci/php:8.0-node-browsers
    steps:
      - checkout
      - run: sudo apt update
      - restore_cache:
          keys:
            - v80-dependencies-{{ checksum "composer.json" }}
            - v80-dependencies-
      - run: composer update --no-interaction
      - save_cache:
          key: v80-dependencies-{{ checksum "composer.json" }}
          paths:
            - ./vendor
      - run: ./vendor/bin/phpunit --dont-report-useless-tests

workflows:
  version: 2
  test-php-versions:
    jobs:
      - build-php74
      - build-php80

Add flag to ignore useless tests for now
Add flag to ignore useless tests for now
