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

Update the CI config to use non-deprecated images #104

Merged
merged 3 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
17 changes: 6 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ references:
executors:
php:
docker:
- image: circleci/php:7.4.5-cli-node
- image: cimg/php:7.4.5-node

commands:
set-up-packages:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
steps:
- checkout
- node/install:
node-version: '14.18.1'
node-version: '14.15.0'
- nodegit-workaround
- set-up-packages
- run: npm run lint
Expand All @@ -49,7 +49,7 @@ jobs:
php-version:
type: string
docker:
- image: circleci/php:<< parameters.php-version >>-cli-node
- image: cimg/php:<< parameters.php-version >>-node
environment:
WP_TESTS_DIR: ~/project/wordpress-develop/tests/phpunit
- image: mysql:5.7
Expand All @@ -61,13 +61,8 @@ jobs:
MYSQL_ROOT_PASSWORD: wordpress
steps:
- checkout
- run:
name: Installing PHP extensions
command: |
sudo apt-get update && sudo apt-get install libpng-dev
sudo docker-php-ext-install mysqli gd
- node/install:
node-version: '14.18.1'
node-version: '14.15.0'
- nodegit-workaround
- run:
name: Installing WordPress and setting up tests
Expand All @@ -94,7 +89,7 @@ jobs:
steps:
- checkout
- node/install:
node-version: '14.18.1'
node-version: '14.15.0'
- nodegit-workaround
- run: HUSKY_SKIP_INSTALL=1 npm ci && npm run test:js -- --maxWorkers=2

Expand All @@ -106,7 +101,7 @@ jobs:
- run: sudo apt-get update && sudo apt-get install php php-xml
- install-composer
- node/install:
node-version: '14.18.1'
node-version: '14.15.0'
- nodegit-workaround
- set-up-packages
- run: npm run wp-env start && npm run test:e2e
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
"wp-coding-standards/wpcs": "2.2.0",
"phpunit/phpunit": "7.5.2"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Copy link
Contributor Author

@kienstra kienstra Jan 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In response to a failed job

}
},
"autoload": {
"psr-4": {
"Genesis\\CustomBlocks\\": "php/"
Expand Down