Skip to content
Open
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
65eadfc
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Sep 24, 2025
594535a
test1
KostenetskyiAndrii Sep 24, 2025
ba3f62a
test2
KostenetskyiAndrii Sep 24, 2025
93aaa10
test3
KostenetskyiAndrii Sep 24, 2025
03bc0d4
test4
KostenetskyiAndrii Sep 24, 2025
40bcce4
test5
KostenetskyiAndrii Sep 24, 2025
43d8b73
test6
KostenetskyiAndrii Sep 25, 2025
b336760
test7
KostenetskyiAndrii Sep 25, 2025
35eac57
test8
KostenetskyiAndrii Sep 25, 2025
e22b584
test9
KostenetskyiAndrii Sep 25, 2025
bf93b70
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 3, 2025
737351a
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 3, 2025
edc0673
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 3, 2025
8621d95
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 3, 2025
54534af
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 3, 2025
5493c89
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 13, 2025
4f9cc8e
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 13, 2025
230240f
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 13, 2025
ced8c16
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 13, 2025
4a584dc
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 13, 2025
b35b16a
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 13, 2025
433008e
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Oct 14, 2025
c83a403
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
f1e7f35
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
b1762cb
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
71ff21b
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
d102315
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
cadb51c
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
492192f
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
18f2ed5
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
309beb6
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
e03f80a
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
50fd914
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
36b760d
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
b34a0b5
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
baafe3c
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
e749ada
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
cd89f85
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
619ba31
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
d33a212
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
3e17727
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii Nov 4, 2025
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
62 changes: 0 additions & 62 deletions .circleci/config.yml

This file was deleted.

97 changes: 97 additions & 0 deletions .github/workflows/test-behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Test Behat CI

on:
pull_request:
workflow_dispatch:
# Nightly at 00:00 UTC (CircleCI: "0 0 * * *")
schedule:
- cron: "0 0 * * *"

jobs:
test-behat:
# Skip scheduled runs unless the workflow file is on a branch named 'release'
if: github.event_name != 'schedule' || github.ref_name == 'release'
runs-on: ubuntu-latest

defaults:
run:
shell: bash

permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Install dependencies
run: |
composer install -n --prefer-dist
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer
coverage: none
extensions: mbstring, intl, zip

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/vendor
key: test-lint-dependencies-{{ checksum "composer.json" }}
restore-keys: test-lint-dependencies-{{ checksum "composer.json" }}

- name: Generate WP admin password
run: echo "$(openssl rand -hex 8)" > /tmp/WORDPRESS_ADMIN_PASSWORD

- name: Export environment (CircleCI -> GHA equivalents)
run: |
echo "TERMINUS_ENV=ci-${GITHUB_RUN_NUMBER}" >> "$GITHUB_ENV"
echo "TERMINUS_SITE=pantheon-hud" >> "$GITHUB_ENV"
echo "SITE_ENV=pantheon-hud.ci-${GITHUB_RUN_NUMBER}" >> "$GITHUB_ENV"
echo "WORDPRESS_ADMIN_USERNAME=pantheon" >> "$GITHUB_ENV"
echo "WORDPRESS_ADMIN_EMAIL=no-reply@getpantheon.com" >> "$GITHUB_ENV"
echo "WORDPRESS_ADMIN_PASSWORD=$(cat /tmp/WORDPRESS_ADMIN_PASSWORD)" >> "$GITHUB_ENV"
# Configures SSH to automatically accept new host keys.
- name: Force SSH to ignore host keys
run: echo "GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" >> $GITHUB_ENV

- name: Install SSH key
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SITE_OWNER_SSH_PRIVATE_KEY }}

- name: Configure Composer GitHub OAuth (optional)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ -z "${GITHUB_TOKEN}" ]; then
echo "GITHUB_TOKEN missing; assuming unauthenticated build"; exit 0
fi
{ composer config -g github-oauth.github.com "${GITHUB_TOKEN}"; } &>/dev/null
- name: Install Terminus
uses: pantheon-systems/terminus-github-actions@v1
with:
pantheon-machine-token: ${{ secrets.TERMINUS_TOKEN }}

- name: Validate fixture version
uses: jazzsequence/action-validate-plugin-version@v1
with:
branch: ${{ github.head_ref }}
dry-run: 'true'

- name: Behat prepare
run: ./bin/behat-prepare.sh

- name: Behat tests (strict)
run: ./bin/behat-test.sh --strict

- name: Behat cleanup (always)
if: always()
run: ./bin/behat-cleanup.sh
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.DS_Store
.idea
.codacy
binding.*
node_modules/
vendor/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
**Contributors:** [getpantheon](https://profiles.wordpress.org/getpantheon/), [danielbachhuber](https://profiles.wordpress.org/danielbachhuber/), [jspellman](https://profiles.wordpress.org/jspellman/), [jazzs3quence](https://profiles.wordpress.org/jazzs3quence), [pwtyler](https://profiles.wordpress.org/pwtyler)
**Tags:** Pantheon, hosting, environment-indicator
**Requires at least:** 4.9
**Tested up to:** 6.8.1
**Tested up to:** 6.8.3
**Requires PHP:** 7.4
**Stable tag:** 0.4.5-dev
**License:** GPLv2 or later
Expand Down
20 changes: 15 additions & 5 deletions bin/behat-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,25 @@ git commit -m "Include Pantheon HUD and its configuration files"
git push

# Sometimes Pantheon takes a little time to refresh the filesystem
terminus build:workflow:wait $TERMINUS_SITE.$TERMINUS_ENV
terminus workflow:wait $TERMINUS_SITE.$TERMINUS_ENV

###
# Set up WordPress, theme, and plugins for the test run
###
# Silence output so as not to show the password.
{
terminus wp $SITE_ENV -- core install --title=$TERMINUS_ENV-$TERMINUS_SITE --url=$PANTHEON_SITE_URL --admin_user=$WORDPRESS_ADMIN_USERNAME --admin_email=pantheon-hud@getpantheon.com --admin_password=$WORDPRESS_ADMIN_PASSWORD
} &> /dev/null

# Retry WP core install as the environment may take a moment to be ready.
max_attempts=5
attempt_num=1
until terminus wp $SITE_ENV -- core install --title=$TERMINUS_ENV-$TERMINUS_SITE --url=$PANTHEON_SITE_URL --admin_user=$WORDPRESS_ADMIN_USERNAME --admin_email=pantheon-hud@getpantheon.com --admin_password=$WORDPRESS_ADMIN_PASSWORD; do
if [ $attempt_num -eq $max_attempts ]; then
echo "WP core install failed after $max_attempts attempts."
exit 1
fi
echo "WP core install failed. Retrying in 15 seconds... (Attempt $attempt_num of $max_attempts)"
sleep 15
attempt_num=$((attempt_num+1))
done

terminus wp $SITE_ENV -- cache flush
terminus wp $SITE_ENV -- plugin activate pantheon-hud
terminus wp $SITE_ENV -- theme activate twentytwentythree
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: getpantheon, danielbachhuber, jazzs3quence, jspellman, pwtyler
Tags: Pantheon, hosting, environment-indicator
Requires at least: 4.9
Tested up to: 6.8.1
Tested up to: 6.8.3
Requires PHP: 7.4
Stable tag: 0.4.5-dev
License: GPLv2 or later
Expand All @@ -12,7 +12,7 @@ A heads-up display into your Pantheon environment.

== Description ==

This plugin provides situational awareness of the Pantheon plaform from within your WordPress dashboard. It's helpful to be reminded what environment you're in, as well as providing quick links to get back to Pantheon's dashboard, or to interface with your WordPress installation via the command line.
This plugin provides situational awareness of the Pantheon platform from within your WordPress dashboard. It's helpful to be reminded what environment you're in, as well as providing quick links to get back to Pantheon's dashboard, or to interface with your WordPress installation via the command line.

Pantheon HUD is in early stages of development. We want your feedback! [Create a Github issue](https://github.com/pantheon-systems/pantheon-hud/issues) with questions, feature requests, or bug reports.

Expand Down
Loading