diff --git a/.github/workflows/integration-tests-core.yml b/.github/workflows/integration-tests-core.yml index af23184361d..193b27653b8 100644 --- a/.github/workflows/integration-tests-core.yml +++ b/.github/workflows/integration-tests-core.yml @@ -58,7 +58,7 @@ jobs: - name: Setup Firebolt Core id: setup-core - uses: firebolt-db/action-setup-core@eabcd701de0be41793fda0655d29d46c70c847c2 # main + uses: firebolt-db/action-setup-core@c1a5dc8d2f54509084037487c6ff71643f695790 # main with: tag_version: ${{ inputs.tag_version || vars.DEFAULT_CORE_IMAGE_TAG }} @@ -74,8 +74,8 @@ jobs: - name: Run integration tests HTTP env: - SERVICE_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }} - SERVICE_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }} + SERVICE_ID: "" + SERVICE_SECRET: "" DATABASE_NAME: "firebolt" ENGINE_NAME: "" STOPPED_ENGINE_NAME: "" @@ -87,8 +87,8 @@ jobs: - name: Run integration tests HTTPS env: - SERVICE_ID: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }} - SERVICE_SECRET: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }} + SERVICE_ID: "" + SERVICE_SECRET: "" DATABASE_NAME: "firebolt" ENGINE_NAME: "" STOPPED_ENGINE_NAME: "" diff --git a/.github/workflows/integration-tests-v2.yml b/.github/workflows/integration-tests-v2.yml index a9f149cd022..4771952762b 100644 --- a/.github/workflows/integration-tests-v2.yml +++ b/.github/workflows/integration-tests-v2.yml @@ -44,7 +44,7 @@ jobs: - name: Setup database and engine id: setup - uses: firebolt-db/integration-testing-setup@813c4835ef38adcba3f8760e7afc21a3c7248023 # v2.6.2 + uses: firebolt-db/integration-testing-setup@39ed7c82e431c3a073ca8f14b8341c631e72ef4a # new-identity with: firebolt-client-id: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }} firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }} diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6a37c10c8da..12a2a1146e3 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -33,11 +33,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Decorate commit - uses: Sibz/github-status-action@650dd1a882a76dbbbc4576fb5974b8d22f29847f # v1.1.6 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + env: + NEEDS_RESULTS: ${{ toJSON(needs) }} with: - authToken: ${{secrets.GITHUB_TOKEN}} - context: 'Integration tests' - description: "${{ contains(needs.*.result, 'failure') && 'Failed' || 'Successful' }}" - state: "${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}" - sha: ${{github.event.pull_request.head.sha || github.sha}} - target_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + script: | + const failed = Object.values(JSON.parse(process.env.NEEDS_RESULTS)) + .some(job => job.result === 'failure'); + await github.rest.repos.createCommitStatus({ + ...context.repo, + sha: context.payload.pull_request?.head.sha || context.sha, + context: 'Integration tests', + description: failed ? 'Failed' : 'Successful', + state: failed ? 'failure' : 'success', + target_url: `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`, + }); diff --git a/.github/workflows/nightly-v2.yml b/.github/workflows/nightly-v2.yml index f6ba43d6103..8be0dfc3c92 100644 --- a/.github/workflows/nightly-v2.yml +++ b/.github/workflows/nightly-v2.yml @@ -64,7 +64,7 @@ jobs: - name: Setup database and engine id: setup - uses: firebolt-db/integration-testing-setup@813c4835ef38adcba3f8760e7afc21a3c7248023 # v2.6.2 + uses: firebolt-db/integration-testing-setup@39ed7c82e431c3a073ca8f14b8341c631e72ef4a # new-identity with: firebolt-client-id: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }} firebolt-client-secret: ${{ secrets.FIREBOLT_CLIENT_SECRET_STG_NEW_IDN }}