Skip to content

Commit 255d815

Browse files
committed
fix: run integration tests after deploy to staging
Integration tests will now be run in the gating workflow after the deployment to the staging cluster JIRA: GRIF-524
1 parent 37de70a commit 255d815

2 files changed

Lines changed: 26 additions & 20 deletions

File tree

.github/workflows/check.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,9 @@ jobs:
2323
id: changed-files
2424
uses: tj-actions/changed-files@v45
2525

26-
gooddata-ruby-lcm-integration-e2e:
27-
needs:
28-
- prepare-env
29-
uses: ./.github/workflows/lcm-integration-e2e.yaml
30-
secrets: inherit
31-
permissions:
32-
id-token: write
33-
contents: read
34-
if: ${{ needs.prepare-env.outputs.branch == 'master' }}
35-
with:
36-
AUTO_MERGE: false
37-
base_branch: ${{ needs.prepare-env.outputs.branch }}
38-
pr_number: ${{ needs.prepare-env.outputs.pr_number }}
39-
java_version: '11'
40-
ruby_version: 'jruby-9.4.12.1'
41-
4226
gooddata-ruby-lcm-build-pipeline:
4327
needs:
44-
- gooddata-ruby-lcm-integration-e2e
28+
- prepare-env
4529
permissions:
4630
contents: read
4731
id-token: write

.github/workflows/lcm-pipeline.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,33 @@ jobs:
246246
wait_retries: ${{ matrix.hr.waitRetries }}
247247
pipeline_identifier: ${{ needs.prepare-build.outputs.pipeline_identifier }}
248248

249+
lcm-integration-e2e:
250+
needs: [ prepare-build, build-helmreleases, wait-for-deployment ]
251+
if: |
252+
!cancelled() &&
253+
!contains(needs.*.result, 'failure') &&
254+
needs.build-helmreleases.result == 'success' &&
255+
inputs.deploy
256+
uses: ./.github/workflows/lcm-integration-e2e.yaml
257+
secrets: inherit
258+
permissions:
259+
id-token: write
260+
contents: read
261+
with:
262+
AUTO_MERGE: ${{ inputs.AUTO_MERGE }}
263+
base_branch: ${{ inputs.base_branch }}
264+
pr_number: ${{ inputs.pr_number }}
265+
java_version: '11'
266+
ruby_version: 'jruby-9.4.12.1'
267+
249268
revert-staging-pr:
250-
needs: [ create-staging-pr, wait-for-deployment ]
269+
needs: [ create-staging-pr, wait-for-deployment, lcm-integration-e2e ]
251270
if: |
252271
!cancelled() &&
253-
needs.wait-for-deployment.result == 'failure' &&
272+
(
273+
needs.wait-for-deployment.result == 'failure' ||
274+
needs.lcm-integration-e2e.result == 'failure'
275+
) &&
254276
inputs.deploy
255277
uses: ./.github/workflows/revert-staging-pr.yaml
256278
with:
@@ -259,7 +281,7 @@ jobs:
259281
secrets: inherit
260282

261283
promote-to-stable:
262-
needs: [ prepare-build, services-build, build-helmreleases, wait-for-deployment ]
284+
needs: [ prepare-build, services-build, build-helmreleases, wait-for-deployment, lcm-integration-e2e ]
263285
if: |
264286
!cancelled() &&
265287
!contains(needs.*.result, 'failure') &&

0 commit comments

Comments
 (0)