-
Notifications
You must be signed in to change notification settings - Fork 9
feat: SRE-1388 - Migration from CircleCI to GH Actions #156
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
Open
KostenetskyiAndrii
wants to merge
41
commits into
main
Choose a base branch
from
SRE-1122
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 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 594535a
test1
KostenetskyiAndrii ba3f62a
test2
KostenetskyiAndrii 93aaa10
test3
KostenetskyiAndrii 03bc0d4
test4
KostenetskyiAndrii 40bcce4
test5
KostenetskyiAndrii 43d8b73
test6
KostenetskyiAndrii b336760
test7
KostenetskyiAndrii 35eac57
test8
KostenetskyiAndrii e22b584
test9
KostenetskyiAndrii bf93b70
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 737351a
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii edc0673
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 8621d95
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 54534af
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 5493c89
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 4f9cc8e
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 230240f
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii ced8c16
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 4a584dc
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii b35b16a
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 433008e
feat: SRE-1122 - Migration from CircleCI to GH Actions
KostenetskyiAndrii c83a403
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii f1e7f35
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii b1762cb
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 71ff21b
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii d102315
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii cadb51c
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 492192f
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 18f2ed5
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 309beb6
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii e03f80a
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 50fd914
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 36b760d
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii b34a0b5
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii baafe3c
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii e749ada
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii cd89f85
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 619ba31
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii d33a212
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii 3e17727
feat: SRE-1388 - Migration from CircleCI to GH Actions
KostenetskyiAndrii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| 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: 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 | ||
KostenetskyiAndrii marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| .DS_Store | ||
| .idea | ||
| .codacy | ||
| binding.* | ||
| node_modules/ | ||
| vendor/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.