Skip to content
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

Fix CI workflows: continuous-integration.yml #3815

Merged
merged 1 commit into from
Dec 3, 2024
Merged
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
16 changes: 11 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,40 @@ concurrency:

jobs:
nondraft-pr:
# Adding an `if:` that evaluates to false for this nondraft-pr job prevents other dependent jobs from running.
# For github.event.pull_request fields, see
# https://docs.github.com/en/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request
if: github.event_name != 'pull_request' ||
(github.event_name == 'pull_request' && !github.event.pull_request.draft )
if: >
github.repository == 'department-of-veterans-affairs/abd-vro' &&
(github.event_name != 'pull_request' ||
(github.event_name == 'pull_request' && !github.event.pull_request.draft))
runs-on: ubuntu-latest
steps:
- name: "DEBUG"
run: |
echo "${{ github.event_name }} ${{ github.event.pull_request.draft }}"

lint-and-test:
if: github.repository == 'department-of-veterans-affairs/abd-vro'
uses: ./.github/workflows/test-code.yml
secrets: inherit

codeql:
if: github.repository == 'department-of-veterans-affairs/abd-vro'
uses: ./.github/workflows/codeql-analysis.yml
secrets: inherit

container-healthchecks:
if: github.repository == 'department-of-veterans-affairs/abd-vro'
needs: nondraft-pr
uses: ./.github/workflows/container-healthchecks.yml
secrets: inherit

svc-bgs-api:
if: github.repository == 'department-of-veterans-affairs/abd-vro'
needs: nondraft-pr
uses: ./.github/workflows/svc-bgs-api-integration-test.yml
secrets: inherit

svc-bip-api:
if: github.repository == 'department-of-veterans-affairs/abd-vro'
needs: nondraft-pr
uses: ./.github/workflows/svc-bip-api-integration-test.yml
secrets: inherit
Expand All @@ -58,11 +62,13 @@ jobs:
# - Disabling issue: https://github.com/department-of-veterans-affairs/abd-vro/issues/3802
# - BIE Docs: https://github.com/department-of-veterans-affairs/abd-vro/issues/3753
# svc-bie-kafka-end-to-end:
# if: github.repository == 'department-of-veterans-affairs/abd-vro'
# needs: nondraft-pr
# uses: ./.github/workflows/bie-kafka-end2end-test.yml
# secrets: inherit

ee-ep-merge-end-to-end:
if: github.repository == 'department-of-veterans-affairs/abd-vro'
needs: nondraft-pr
uses: ./.github/workflows/ee-ep-merge-end-to-end.yml
secrets: inherit
Loading