Skip to content
Merged
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
72 changes: 36 additions & 36 deletions .github/workflows/gate.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: gate
on:
merge_group:
types:
- checks_requested
merge_group:
types:
- checks_requested
jobs:
detect-changes:
secrets: inherit
permissions:
contents: write
id-token: write
uses: ./.github/workflows/rw-rush-detect-changes.yml
with:
source-branch: ${{ github.event.merge_group.head_sha }}
target-branch: ${{ github.event.merge_group.base_ref }}
package-name: "@gooddata/sdk-ui-tests-e2e"
detect-changes:
secrets: inherit
permissions:
contents: write
id-token: write
uses: ./.github/workflows/rw-rush-detect-changes.yml
with:
source-branch: ${{ github.event.merge_group.head_sha }}
target-branch: ${{ github.event.merge_group.base_ref }}
package-name: "@gooddata/sdk-ui-tests-e2e"

e2e-stage:
needs: [detect-changes]
if: ${{ needs.detect-changes.outputs.is-changed == 'true' }}
permissions:
id-token: write
contents: read
pull-requests: read
name: e2e-stage
uses: ./.github/workflows/rw-rush-build-e2e-tests.yml
secrets: inherit
e2e-stage:
needs: [detect-changes]
if: ${{ needs.detect-changes.outputs.is-changed == 'true' }}
permissions:
id-token: write
contents: read
pull-requests: read
name: e2e-stage
uses: ./.github/workflows/rw-rush-build-e2e-tests.yml
secrets: inherit

ready-to-merge:
runs-on:
group: infra1-runners-arc
labels: runners-small
if: always()
needs:
- e2e-stage
steps:
- name: Check if needed jobs succeeded
uses: re-actors/alls-green@release/v1
with:
allowed-skips: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}
ready-to-merge:
runs-on:
group: infra1-runners-arc
labels: runners-small
if: always()
needs:
- e2e-stage
steps:
- name: Check if needed jobs succeeded
uses: re-actors/alls-green@release/v1
with:
allowed-skips: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}
78 changes: 39 additions & 39 deletions .github/workflows/push-e2e-integrated-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Push ~ Run integrated e2e tests
on:
push:
branches:
- master
- release
push:
branches:
- master
- release

jobs:
pull-request-info:
if: ${{ !(startsWith(github.event.head_commit.message, format('chore{0} bump versions to', ':')) || startsWith(github.event.head_commit.message, format('chore{0} update Hugo version to', ':'))) }}
runs-on: [ubuntu-latest]
outputs:
author: ${{ steps.author.outputs.result }}
steps:
- uses: actions/github-script@v7
id: author
with:
script: |
const pullRequests = await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
});
pull-request-info:
if: ${{ !(startsWith(github.event.head_commit.message, format('chore{0} bump versions to', ':')) || startsWith(github.event.head_commit.message, format('chore{0} update Hugo version to', ':'))) }}
runs-on: [ubuntu-latest]
outputs:
author: ${{ steps.author.outputs.result }}
steps:
- uses: actions/github-script@v7
id: author
with:
script: |
const pullRequests = await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
owner: context.repo.owner,
repo: context.repo.repo,
});

return pullRequests?.data[0]?.user?.login;
result-encoding: string
return pullRequests?.data[0]?.user?.login;
result-encoding: string

e2e-integrated:
needs: [pull-request-info]
permissions:
id-token: write
contents: read
pull-requests: read
uses: ./.github/workflows/rw-rush-build-e2e-tests-integrated.yml
secrets: inherit
e2e-integrated:
needs: [pull-request-info]
permissions:
id-token: write
contents: read
pull-requests: read
uses: ./.github/workflows/rw-rush-build-e2e-tests-integrated.yml
secrets: inherit

notify-failed-to-slack:
notify-failed-to-slack:
if: ${{ !cancelled() && needs.e2e-integrated.result == 'failure' }}
needs: [e2e-integrated,pull-request-info]
needs: [e2e-integrated, pull-request-info]
runs-on: [ubuntu-latest]
steps:
- name: Inform to slack when workflows failed
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: "#javascript-notifications"
slack-message: ":warning: post merge e2e in *gooddata-sdk-ui* initiated by ${{env.AUTHOR}} encountered an error during execution. Check the *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|log here>* for further information."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
AUTHOR: ${{ needs.pull-request-info.outputs.author }}
- name: Inform to slack when workflows failed
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: "#javascript-notifications"
slack-message: ":warning: post merge e2e in *gooddata-sdk-ui* initiated by ${{env.AUTHOR}} encountered an error during execution. Check the *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|log here>* for further information."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
AUTHOR: ${{ needs.pull-request-info.outputs.author }}
Loading