Skip to content

Commit

Permalink
Added actions GATI
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Nov 14, 2024
1 parent dcb72c2 commit 54f1909
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .github/actions/build-test-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ inputs:
QA_AWS_ACCOUNT_NUMBER:
description: The AWS region the ECR repository is located in, should only be needed for public ECR repositories, used in configuring docker/login-action
required: true
GITHUB_TOKEN:
description: The GATI Token that we can use to pull private repos
required: true

runs:
using: composite
Expand All @@ -32,6 +35,11 @@ runs:
tag: ${{ inputs.tag }}
AWS_REGION: ${{ inputs.QA_AWS_REGION }}
AWS_ROLE_TO_ASSUME: ${{ inputs.QA_AWS_ROLE_TO_ASSUME }}
- name: Setup Go with private repo access
shell: bash
run: |
git config --global url."https://x-access-token:${{ inputs.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
go env -w GOPRIVATE=github.com/smartcontractkit/*
- name: Build and Publish Test Runner
if: steps.check-image.outputs.exists == 'false'
uses: smartcontractkit/chainlink-github-actions/docker/build-push@fc3e0df622521019f50d772726d6bf8dc919dd38 # v2.3.19
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/curl -X 'POST' \
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
curl -X 'POST' \
'http://localhost:5234/execute' \
-H 'accept: application/json' \
-H 'traceId: 00-d451a2b705c7a3a735c9dcb405685f1e-a6931ab1e18fc164-01' \
-H 'Content-Type: application/json' \
-d '{"config":{"datasources":[],"providers":[{"input":{"address":"0x37e5bde04b268efda93097e0f253dccf9e0c6d4ecc15bcc46a9630ced80cbf2"},"name":"basic-address","type":"@chainlink/gauntlet-starknet/lib/starknet.js/account"},{"input":{"debug":true,"privateKey":"0x00000000000000000000000000000000ce8ec2d32b89f7210c739879a31b0e9e"},"name":"basic-pk","type":"@chainlink/gauntlet-starknet/lib/starknet.js/signer"},{"input":{"checkStatus":true,"url":"http://devnet:5050"},"name":"basic-url","type":"@chainlink/gauntlet-starknet/lib/starknet.js/provider"}]},"operation":{"args":{},"name":"starknet/data-feeds/[email protected]:declare"},"plan":null,"snapshot":null}'
8 changes: 1 addition & 7 deletions .github/workflows/integration-tests-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ jobs:
aws-role-arn: ${{ secrets.AWS_OIDC_GLOBAL_READ_ONLY_TOKEN_ISSUER_ROLE_ARN }}
aws-lambda-url: ${{ secrets.GATI_RELENG_LAMBDA_URL }}
aws-region: ${{ secrets.QA_AWS_REGION }}
- name: Setup Go with private repo access
shell: bash
run: |
git config --global url."https://x-access-token:${{ steps.setup-github-token.outputs.access-token }}@github.com/".insteadOf "https://github.com/"
go env -w GOPRIVATE=github.com/smartcontractkit/*
env:
GITHUB_TOKEN: ${{ steps.setup-github-token.outputs.access-token }}
- name: Checkout the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand All @@ -133,6 +126,7 @@ jobs:
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 }}
GITHUB_TOKEN : ${{ steps.setup-github-token.outputs.access-token }}

run_tests:
name: Run Smoke Tests ${{matrix.image.name}}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ jobs:
run: |
git config --global url."https://x-access-token:${{ steps.setup-github-token.outputs.access-token }}@github.com/".insteadOf "https://github.com/"
go env -w GOPRIVATE=github.com/smartcontractkit/*
env:
GITHUB_TOKEN: ${{ steps.setup-github-token.outputs.access-token }}
- name: Ensure "make gomodtidy" has been run
run: |
make gomodtidy
Expand Down

0 comments on commit 54f1909

Please sign in to comment.