-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add email config for backend test (#1488)
- Loading branch information
1 parent
db47165
commit 6deb494
Showing
1 changed file
with
18 additions
and
5 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 |
---|---|---|
|
@@ -19,14 +19,11 @@ jobs: | |
outputs: | ||
cache-hit: ${{ steps.cache.outputs.cache-hit }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/[email protected] | ||
|
||
- name: Set up cache for OpenShift CLI | ||
id: cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /usr/local/bin/oc # Path where the `oc` binary will be installed | ||
path: /usr/local/bin/oc # Path where the `oc` binary will be installed | ||
key: oc-cli-${{ runner.os }} | ||
|
||
- name: Install OpenShift CLI (if not cached) | ||
|
@@ -122,6 +119,12 @@ jobs: | |
LCFS_REDIS_PORT: 6379 | ||
LCFS_REDIS_PASSWORD: development_only | ||
APP_ENVIRONMENT: dev | ||
LCFS_CHES_CLIENT_ID: mock_client_id | ||
LCFS_CHES_CLIENT_SECRET: mock_client_secret | ||
LCFS_CHES_AUTH_URL: http://mock_auth_url | ||
LCFS_CHES_SENDER_EMAIL: [email protected] | ||
LCFS_CHES_SENDER_NAME: Mock Notification System | ||
LCFS_CHES_EMAIL_URL: http://mock_email_url | ||
|
||
- name: Run frontend tests | ||
id: frontend_tests | ||
|
@@ -189,6 +192,12 @@ jobs: | |
output1: ${{ steps.set-pre-release.outputs.PRE_RELEASE }} | ||
|
||
steps: | ||
- name: Restore oc command from Cache | ||
uses: actions/[email protected] | ||
with: | ||
path: /usr/local/bin/oc | ||
key: oc-cli-${{ runner.os }} | ||
|
||
- name: Log in to Openshift | ||
uses: redhat-actions/[email protected] | ||
with: | ||
|
@@ -248,13 +257,17 @@ jobs: | |
PRE_RELEASE: ${{ needs.set-pre-release.outputs.output1 }} | ||
|
||
steps: | ||
- id: get-current-time | ||
run: | | ||
echo "CURRENT_TIME=$(TZ='America/Vancouver' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT | ||
- name: Ask for approval for LCFS release-${{ env.VERSION }} Test deployment | ||
uses: trstringer/[email protected] | ||
with: | ||
secret: ${{ github.TOKEN }} | ||
approvers: AlexZorkin,kuanfandevops,hamed-valiollahi,airinggov,areyeslo,dhaselhan,Grulin,kevin-hashimoto | ||
minimum-approvals: 1 | ||
issue-title: "LCFS ${{ env.VERSION }}-${{ env.PRE_RELEASE }} Test Deployment" | ||
issue-title: "LCFS ${{ env.VERSION }}-${{ env.PRE_RELEASE }} Test Deployment at ${{ steps.get-current-time.outputs.CURRENT_TIME }}" | ||
|
||
- name: Restore oc command from Cache | ||
uses: actions/[email protected] | ||
|