Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMS-1144] Run tests in PHP 8.2. #467

Merged
merged 7 commits into from
Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
defaults: &defaults
docker:
- image: pantheonpublic/php-ci:v7.4-hub
- image: quay.io/pantheon-public/php-ci:v8.2
working_directory: ~/terminus_build_tools_plugin
environment:

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
test_drupal_9_github:
<<: *defaults
docker:
- image: pantheonpublic/php-ci:v7.4-hub
- image: quay.io/pantheon-public/php-ci:v8.2
resource_class: large
steps:
- checkout
Expand All @@ -67,6 +67,9 @@ jobs:
- run:
name: Check Terminus version
command: terminus --version
- run:
name: Disable strict SSH host checking to prevent SSH connect issues
command: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config"
- run:
name: Test D9 with GitHub
command: ./.circleci/test-github-repo.sh "d9"
Expand Down Expand Up @@ -96,13 +99,16 @@ jobs:
test_drupal_9_gitlab:
<<: *defaults
docker:
- image: pantheonpublic/php-ci:v7.4-hub
- image: quay.io/pantheon-public/php-ci:v8.2
resource_class: large
steps:
- checkout
- run:
name: dependencies
command: ./.circleci/set-up-globals.sh
- run:
name: Disable strict SSH host checking to prevent SSH connect issues
command: echo "StrictHostKeyChecking no" >> "$HOME/.ssh/config"
- run:
name: Test Drupal with GitLab
command: ./.circleci/test-gitlab-repo.sh "d9" gitlabci
Expand Down
1 change: 1 addition & 0 deletions .circleci/test-github-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ composer clear-cache

# Build a test project on github
terminus build:project:create -n "$SOURCE_COMPOSER_PROJECT" "$TERMINUS_SITE" --team="$TERMINUS_ORG" --email="$GIT_EMAIL" --env="BUILD_TOOLS_VERSION=$BUILD_TOOLS_VERSION" $EXTRA_ARGS
echo "Project created"
# Confirm that the Pantheon site was created
terminus site:info "$TERMINUS_SITE"
# Confirm that the Github project was created
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PHP Compatibility
on:
push

jobs:
phpcompatibility:
runs-on: ubuntu-latest
name: PHP Compatibility
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PHPCompatibility
uses: pantheon-systems/phpcompatibility-action@v1
with:
test-versions: 7.4-
8 changes: 2 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@
}
},
"require-dev": {
"phpunit/phpunit": "^4.8.36",
"doctrine/instantiator": "1.0.5",
"phpdocumentor/reflection-docblock": "3.2.2",
"symfony/polyfill-ctype": "v1.11.0",
"phpunit/phpunit": "^9",
"symfony/yaml": "v3.4.26",
"webmozart/assert": "1.4.0",
"phpspec/prophecy": "1.8.0"
"phpspec/prophecy": "^1.16"
},
"scripts": {
"unit-test": "./vendor/bin/phpunit --bootstrap ./vendor/autoload.php tests/*"
Expand Down
Loading