[DX-4553] Optimize Integration Tests Workflow #70660
This file contains hidden or 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
| name: Operator UI CI | |
| on: | |
| pull_request: | |
| env: | |
| TARGET_BRANCH_NAME: ${{ github.event.pull_request.base.ref }} | |
| jobs: | |
| check-gql: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| # To allow writing comments to the current PR | |
| pull-requests: write | |
| name: Breaking Changes GQL Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup GitHub Token | |
| id: setup-github-token | |
| uses: smartcontractkit/.github/actions/setup-github-token@setup-github-token/v1 | |
| with: | |
| aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_CI_OPERATOR_UI_ACCESS_TOKEN_ISSUER_ROLE_ARN }} | |
| aws-lambda-url: ${{ secrets.AWS_INFRA_RELENG_TOKEN_ISSUER_LAMBDA_URL }} | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| aws-role-duration-seconds: 3600 | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Get operator-ui tag | |
| id: get-operator-ui-tag | |
| shell: bash | |
| run: | | |
| if [[ $TARGET_BRANCH_NAME == release/* ]]; then | |
| TAG=$(cat ./operator_ui/TAG) | |
| echo "TAG=$TAG" >> "${GITHUB_OUTPUT}" | |
| else | |
| echo "TAG=main" >> "${GITHUB_OUTPUT}" | |
| fi | |
| - uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be #v1.6.5 | |
| with: | |
| owner: smartcontractkit | |
| repo: operator-ui | |
| github_token: ${{ steps.setup-github-token.outputs.access-token }} | |
| workflow_file_name: chainlink-ci.yml | |
| client_payload: '{"ref": "${{ github.event.pull_request.head.sha }}", "tag": "${{ steps.get-operator-ui-tag.outputs.TAG }}"}' |