Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 29 additions & 3 deletions .github/workflows/pr-deploy-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
name: PR Deploy and Test

on:
pull_request:
types: [opened, synchronize, reopened]
workflow_run:
workflows: ["Quality Checks"]
types:
- completed

jobs:
deploy-pr-backend:
on-start:
name: Workflow startup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- name: Running Notification
env:
WORKFLOW_CONTEXT: ${{ github.event.workflow_run.conclusion }}
run: |
echo "Running pr-deploy-and-test..."
echo $"WORKFLOW_CONTEXT"
echo "---"

on-quality-checks-success:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo "The Quality Checks workflow passed"

on-quality-checks-failure:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo "The Quality Checks workflow failed"

deploy-internal-dev-backend:
needs: [on-quality-checks-success]
uses: ./.github/workflows/deploy-backend.yml
with:
apigee_environment: internal-dev
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
lint-python:
name: Lint Python projects
runs-on: ubuntu-latest
needs: [lint-specification]

steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
Expand Down Expand Up @@ -63,6 +64,7 @@ jobs:
lint-terraform:
name: Lint Terraform projects
runs-on: ubuntu-latest
needs: [lint-python]

steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
Expand All @@ -77,6 +79,7 @@ jobs:
testcoverage_and_sonarcloud:
name: Test Coverage and SonarCloud
runs-on: ubuntu-latest
needs: [lint-terraform]

steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
Expand Down
Loading