-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from SU-SWS/release-2.0.1
2.0.1
- Loading branch information
Showing
72 changed files
with
6,756 additions
and
3,864 deletions.
There are no files selected for viewing
This file contains 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,49 @@ | ||
# .github/workflows/deploy_branch.yml | ||
# Deploys current branch to ACE application. Does not work with tags or commits, | ||
# such as a pull_request event. | ||
name: Deploy current branch | ||
|
||
# Allow this workflow to be called from other workflows. | ||
on: [workflow_call] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy Artifact | ||
runs-on: ubuntu-latest | ||
env: | ||
DRUPAL_DATABASE_NAME: drupal | ||
DRUPAL_DATABASE_USERNAME: drupal | ||
DRUPAL_DATABASE_PASSWORD: drupal | ||
DRUPAL_DATABASE_HOST: mysql | ||
container: | ||
image: pookmish/drupal8ci:latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Restore Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
vendor | ||
docroot/core | ||
docroot/libraries | ||
docroot/modules/contrib | ||
key: 2.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
restore-keys: | | ||
2.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
2.x-${{ hashFiles('composer.json') }}- | ||
2.x- | ||
- name: Install SSH key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.ACQUIA_SSH_KEY }} | ||
name: id_rsa | ||
known_hosts: ${{ secrets.KNOWN_HOSTS }} | ||
if_key_exists: fail | ||
- name: Deploy Artifact | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
ssh-keyscan -t rsa svn-23450.prod.hosting.acquia.com >> /root/.ssh/known_hosts | ||
composer install -n | ||
blt blt:telemetry:disable --no-interaction | ||
blt deploy -v -n |
This file contains 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,21 @@ | ||
# .github/workflows/dev_branch_actions.yml | ||
# Actions triggered on merge to current dev branch (e.g., 1.x, 2.x, etc.,). | ||
# - Runs the tests workflow and deploys an artifact when tests pass. | ||
name: Dev branch actions | ||
|
||
on: | ||
push: | ||
branches: [2.x] | ||
|
||
jobs: | ||
# Run tests on current PR branch. | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
# Allow secrets to be used in the called workflow. | ||
secrets: inherit | ||
# Deploy branch after tests pass by calling deploy workflow. | ||
deploy: | ||
uses: ./.github/workflows/deploy_branch.yml | ||
# Allow secrets to be used in the called workflow. | ||
secrets: inherit | ||
needs: [tests] |
This file contains 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 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,15 @@ | ||
# .github/workflows/pull_request_actions.yml | ||
# Actions triggered on pull_request. | ||
# - Runs the tests workflow and deploys an artifact when tests pass. | ||
name: Pull request actions | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, ready_for_review, converted_to_draft, synchronize] | ||
|
||
jobs: | ||
# Run tests on current PR branch. | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
# Allow secrets to be used in the called workflow. | ||
secrets: inherit |
This file contains 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,5 +1,10 @@ | ||
# .github/workflows/tests.yml | ||
# Runs tests on current branch or tag. | ||
name: PHPUnit and Acceptance Tests | ||
on: [push] | ||
|
||
# Allow this workflow to be called from other workflows. | ||
on: [workflow_call] | ||
|
||
jobs: | ||
phpunit: | ||
name: PHPUnit Coverage Tests | ||
|
@@ -167,48 +172,9 @@ jobs: | |
with: | ||
name: functional-tests-results | ||
path: artifacts | ||
# deploy: | ||
# name: Deploy Artifact | ||
# needs: [phpunit, acceptance, functional] | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# DRUPAL_DATABASE_NAME: drupal | ||
# DRUPAL_DATABASE_USERNAME: drupal | ||
# DRUPAL_DATABASE_PASSWORD: drupal | ||
# DRUPAL_DATABASE_HOST: mysql | ||
# container: | ||
# image: pookmish/drupal8ci:latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Restore Cache | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: | | ||
# vendor | ||
# docroot/core | ||
# docroot/libraries | ||
# docroot/modules/contrib | ||
# key: 2.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
# restore-keys: | | ||
# 2.x-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }} | ||
# 2.x-${{ hashFiles('composer.json') }}- | ||
# 2.x- | ||
# - name: Deploy Artifact | ||
# env: | ||
# SSH_KEY: ${{secrets.SSH_KEY}} | ||
# run: | | ||
# mkdir -p ~/.ssh | ||
# echo $SSH_KEY | base64 -d > ~/.ssh/id_rsa | ||
# chmod 600 ~/.ssh/id_rsa | ||
# eval `ssh-agent -s` | ||
# ssh-add ~/.ssh/id_rsa | ||
# ssh-keyscan svn-23450.prod.hosting.acquia.com > ~/.ssh/known_hosts | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "Github Actions" | ||
# composer install -n | ||
# blt blt:telemetry:disable --no-interaction | ||
# blt deploy -v -n | ||
|
||
# Cancel previous runs of this workflow in the same branch if they're still in | ||
# progress. | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true |
This file contains 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 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
Oops, something went wrong.