[BCF-3143] Multiple Address Bindings (#849) #222
This file contains 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: Integration Tests Publish | |
# Publish the compiled integration tests | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
env: | |
ECR_TAG: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink-solana-tests:develop | |
CONTRACT_ARTIFACTS_PATH: contracts/target/deploy | |
jobs: | |
get-projectserum-version: | |
name: Get ProjectSerum Version | |
environment: integration | |
runs-on: ubuntu-latest | |
outputs: | |
projectserum_version: ${{ steps.psversion.outputs.projectserum_version }} | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- name: Get ProjectSerum Version | |
id: psversion | |
uses: ./.github/actions/projectserum_version | |
e2e-custom-build-artifacts: | |
name: E2E Custom Build Artifacts | |
environment: integration | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
needs: [get-projectserum-version] | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
- name: Build contracts | |
uses: ./.github/actions/build_contract_artifacts | |
with: | |
image: backpackapp/build | |
image-version: ${{ needs.get-projectserum-version.outputs.projectserum_version }} | |
publish-integration-test-image: | |
environment: integration | |
permissions: | |
id-token: write | |
contents: read | |
name: Publish Integration Test Image | |
runs-on: ubuntu-latest | |
needs: [e2e-custom-build-artifacts] | |
steps: | |
- name: Collect Metrics | |
id: collect-gha-metrics | |
uses: smartcontractkit/push-gha-metrics-action@dea9b546553cb4ca936607c2267a09c004e4ab3f # v3.0.0 | |
with: | |
id: solana-e2e-publish | |
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }} | |
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }} | |
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }} | |
this-job-name: Publish Integration Test Image | |
continue-on-error: true | |
- name: Checkout the repo | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Build Image | |
uses: ./.github/actions/build-test-image | |
with: | |
artifacts_path: ${{ env.CONTRACT_ARTIFACTS_PATH }} | |
other_tags: ${{ env.ECR_TAG }} | |
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | |
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | |
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }} | |
- name: Notify Slack | |
# Only run this notification for merge to develop failures | |
if: failure() && github.event_name != 'workflow_dispatch' | |
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0 | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.QA_SLACK_API_KEY }} | |
with: | |
channel-id: "#team-test-tooling-internal" | |
slack-message: ":x: :mild-panic-intensifies: Publish Integration Test Image failed: \n${{ format('https://github.com/{0}/actions/runs/{1}', github.repository, github.run_id) }}\nRepository: Solana\n${{ format('Notifying <!subteam^{0}|{0}>', secrets.GUARDIAN_SLACK_NOTIFICATION_HANDLE)}}" |