-
Notifications
You must be signed in to change notification settings - Fork 24
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 #873 from devinleighsmith/test_to_master
Test to master. IS19 release
- Loading branch information
Showing
433 changed files
with
57,684 additions
and
3,402 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 |
---|---|---|
|
@@ -82,7 +82,7 @@ jobs: | |
head TestResults/coverage.opencover.xml | ||
- name: Codecov | ||
uses: codecov/codecov-action@v1.5.0 | ||
uses: codecov/codecov-action@v2.1.0 | ||
with: | ||
# User defined upload name. Visible in Codecov UI | ||
name: PIMS | ||
|
@@ -100,7 +100,7 @@ jobs: | |
- name: SonarScanner for .NET 5 with pull request decoration support | ||
id: scan | ||
uses: highbyte/[email protected] | ||
if: github.event_name == 'push' | ||
if: github.event_name == 'push' | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
with: | ||
|
@@ -114,16 +114,16 @@ jobs: | |
sonarProjectName: PIMS-API | ||
# The SonarQube server URL. For SonarCloud, skip this setting. | ||
sonarHostname: ${{secrets.SONAR_URL}} | ||
|
||
- name: Find Comment | ||
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | ||
uses: peter-evans/find-comment@v1 | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
comment-author: 'github-actions[bot]' | ||
comment-author: "github-actions[bot]" | ||
body-includes: QUALITY GATE STATUS FOR .NET 5 | ||
|
||
- name: Check Quality Gate and Create Comment | ||
if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id == '' | ||
uses: peter-evans/create-or-update-comment@v1 | ||
|
@@ -135,9 +135,9 @@ jobs: | |
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
QUALITY GATE STATUS FOR .NET 5: FAILED. | ||
[View and resolve details on][1] | ||
[1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}} | ||
reactions: confused | ||
- name: Check Quality Gate and Update Comment | ||
|
@@ -152,9 +152,9 @@ jobs: | |
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
QUALITY GATE STATUS FOR .NET 5: FAILED. | ||
[View and resolve details on][1] | ||
[1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}} | ||
edit-mode: replace | ||
reactions: eyes |
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,118 @@ | ||
name: CI-CD PIMS Development | ||
env: | ||
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }} | ||
# service account: gitaction | ||
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }} | ||
OPENSHIFT_TOOLS_NAMESPACE: "3cd915-tools" | ||
MS_TEAMS_WEBHOOK_BUILD_CHANNEL: ${{ secrets.MS_TEAMS_WEBHOOK_URI_BUILD_CHANNEL }} | ||
|
||
## variables for scripts under git\openshift\4.0\scripts\oc-*.sh | ||
APP_PORT: 8080 | ||
DESTINATION: "dev" | ||
OC_JOB_NAME: "dev" | ||
GIT_URL: "${{github.server_url}}/${{github.repository}}" | ||
GIT_BRANCH: "${{github.ref}}" | ||
APP_NAME: "pims" | ||
PROJ_PREFIX: "3cd915" | ||
PROJ_TOOLS: "3cd915-tools" | ||
PROJ_DEV: "dev" | ||
PROJ_TEST: "test" | ||
PROJ_PROD: "prod" | ||
TAG_DEV: "dev" | ||
TAG_TEST: "test" | ||
TAG_PROD: "prod" | ||
|
||
on: | ||
push: | ||
branches: [dev] | ||
# paths: | ||
# - ".github/workflows/ci-cd-pims-dev.yml" | ||
|
||
jobs: | ||
|
||
ci-cd-start-notification: | ||
name: CI-CD Start Notification to Teams Channel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Start notification to Teams Channel | ||
uses: jdcargile/[email protected] | ||
with: | ||
github-token: ${{ github.token }} | ||
ms-teams-webhook-uri: ${{ env.MS_TEAMS_WEBHOOK_BUILD_CHANNEL }} | ||
notification-summary: PIMS CI-CD GitHub Action STARTED in DEV | ||
notification-color: 17a2b8 | ||
timezone: America/Los_Angeles | ||
|
||
build-frontend: | ||
name: Build frontend | ||
needs: ci-cd-start-notification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
- name: Login to OpenShift | ||
uses: redhat-actions/oc-login@v1 | ||
with: | ||
openshift_server_url: ${{ env.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ env.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ env.OPENSHIFT_TOOLS_NAMESPACE }} | ||
- name: Call script to build frontend (pims-app and pims-app-base) | ||
run: | | ||
./openshift/4.0/player.sh build app-base -apply | ||
./openshift/4.0/player.sh build app -apply | ||
build-api: | ||
name: Build api | ||
needs: ci-cd-start-notification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
- name: Login to OpenShift | ||
uses: redhat-actions/oc-login@v1 | ||
with: | ||
openshift_server_url: ${{ env.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ env.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ env.OPENSHIFT_TOOLS_NAMESPACE }} | ||
- name: Call script to build backend (pims-api) | ||
run: | | ||
./openshift/4.0/player.sh build api -apply | ||
deploy: | ||
name: Deploy frontend and api to OpenShift | ||
needs: [build-frontend, build-api] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
- name: Login to OpenShift | ||
uses: redhat-actions/oc-login@v1 | ||
with: | ||
openshift_server_url: ${{ env.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ env.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: ${{ env.OPENSHIFT_TOOLS_NAMESPACE }} | ||
- name: call scripts to deploy api and frontend | ||
run: | | ||
./openshift/4.0/player.sh deploy api $DESTINATION -apply | ||
./openshift/4.0/player.sh deploy app $DESTINATION -apply | ||
ci-cd-end-notification: | ||
name: CI-CD End Notification to Teams Channel | ||
runs-on: ubuntu-latest | ||
needs: deploy | ||
if: always() | ||
steps: | ||
- name: check workflow status | ||
uses: martialonline/workflow-status@v2 | ||
id: check | ||
- name: End notification to Teams Channel | ||
uses: jdcargile/[email protected] | ||
with: | ||
github-token: ${{ github.token }} | ||
ms-teams-webhook-uri: ${{ env.MS_TEAMS_WEBHOOK_BUILD_CHANNEL }} | ||
notification-summary: PIMS CI-CD GitHub Action COMPLETED in DEV environment with status ${{ steps.check.outputs.status }} | ||
notification-color: 17a2b8 | ||
timezone: America/Los_Angeles |
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
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
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
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.