Skip to content
Open
Show file tree
Hide file tree
Changes from 15 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
63 changes: 0 additions & 63 deletions .circleci/config.yml

This file was deleted.

95 changes: 95 additions & 0 deletions .github/workflows/test-behat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
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

# # Run all steps inside the CircleCI-equivalent container
container:
image: quay.io/pantheon-public/build-tools-ci:8.x-php8.2
options: --user root

defaults:
run:
shell: bash

permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4

- 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: Install dependencies
run: composer install -n --prefer-dist

- name: Run PHP Lint
run: composer phpcs

- 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=wp-redis" >> "$GITHUB_ENV"
echo "SITE_ENV=wp-redis.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: Terminus login (optional)
env:
TERMINUS_TOKEN: ${{ secrets.TERMINUS_TOKEN }}
run: |
if [ -z "${TERMINUS_TOKEN}" ]; then
echo "TERMINUS_TOKEN missing; assuming unauthenticated build"; exit 0
fi
terminus auth:login --machine-token="${TERMINUS_TOKEN}"
- name: Validate fixture version
run: ./bin/validate-fixture-version.sh

- 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.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 Down