Skip to content

Commit

Permalink
Test Multiple PHP Build Versions
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Yost <[email protected]>
  • Loading branch information
justinyost committed Jan 31, 2023
1 parent 4f5cc6b commit 3bb9399
Showing 1 changed file with 50 additions and 2 deletions.
52 changes: 50 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,58 @@
#
version: 2
jobs:
build:
build-82:
docker:
# Specify the version you desire here
- image: circleci/php:7.1-node-browsers
- image: cimg/php:8.2.1

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
# "composer.lock" can be used if it is committed to the repo
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor

- run: ./vendor/bin/phpcs
build-82:
docker:
# Specify the version you desire here
- image: cimg/php:8.1

steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
# "composer.lock" can be used if it is committed to the repo
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor

- run: ./vendor/bin/phpcs
build-74:
docker:
# Specify the version you desire here
- image: cimg/php:7.4

steps:
- checkout
Expand Down

0 comments on commit 3bb9399

Please sign in to comment.