Merge pull request #15 from smartcontractkit/gauntlet-erc20 #1362
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: E2E Custom image build tests | ||
| on: | ||
| push: | ||
| workflow_dispatch: | ||
| inputs: | ||
| cl_branch_ref: | ||
| description: Chainlink repo branch to integrate with | ||
| required: true | ||
| default: develop | ||
| type: string | ||
| jobs: | ||
| e2e_custom_build_custom_chainlink_image: | ||
| name: E2E Custom Build Custom CL Image | ||
| # target branch can't be set as var, it's from where we getting pipeline code | ||
| uses: smartcontractkit/chainlink/.github/workflows/build-custom.yml@develop | ||
|
Check failure on line 16 in .github/workflows/e2e_custom_cl.yml
|
||
| with: | ||
| cl_repo: smartcontractkit/chainlink | ||
| cl_ref: ${{ github.event.inputs.cl_branch_ref }} | ||
| # commit of the caller branch | ||
| dep_starknet_sha: ${{ github.sha }} | ||
| secrets: | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.QA_AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.QA_AWS_SECRET_KEY }} | ||
| AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
| AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
| QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
| QA_PRIVATE_GHA_PULL: ${{ secrets.QA_PRIVATE_GHA_PULL }} | ||
| e2e_cutsom_run_smoke_tests: | ||
| name: E2E Custom Run Smoke Tests | ||
| runs-on: ubuntu-latest | ||
| needs: [e2e_custom_build_custom_chainlink_image] | ||
| env: | ||
| CGO_ENABLED: 1 | ||
| steps: | ||
| - name: Checkout the repo | ||
| uses: actions/checkout@v2 | ||
| - name: Setup go ${{ steps.tool-versions.outputs.golang_version }} | ||
| uses: actions/setup-go@v2 | ||
| with: | ||
| go-version: '1.18' | ||
| - name: Configure AWS Credentials | ||
| uses: aws-actions/configure-aws-credentials@v1 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.QA_AWS_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.QA_AWS_SECRET_KEY }} | ||
| aws-region: ${{ secrets.QA_AWS_REGION }} | ||
| role-to-assume: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
| role-duration-seconds: 3600 | ||
| - name: Set Kubernetes Context | ||
| uses: azure/k8s-set-context@v1 | ||
| with: | ||
| method: kubeconfig | ||
| kubeconfig: ${{ secrets.QA_KUBECONFIG }} | ||
| - name: Cache Vendor Packages | ||
| uses: actions/cache@v2 | ||
| id: cache-packages | ||
| with: | ||
| path: | | ||
| ~/.cache/go-build | ||
| ~/go/pkg/mod | ||
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-go- | ||
| - name: Download Go Vendor Packages | ||
| if: steps.cache-packages.outputs.cache-hit != 'true' | ||
| run: go mod download | ||
| - name: Install Ginkgo CLI | ||
| run: go install github.com/onsi/ginkgo/v2/[email protected] | ||
| - name: Run Tests | ||
| env: | ||
| CHAINLINK_IMAGE: 795953128386.dkr.ecr.us-west-2.amazonaws.com/chainlink | ||
| CHAINLINK_VERSION: custom.${{ github.sha }} | ||
| run: | | ||
| export PATH=$PATH:$(go env GOPATH)/bin | ||
| make e2e_test | ||
| - name: Publish Test Results | ||
| uses: mikepenz/action-junit-report@v2 | ||
| if: always() | ||
| with: | ||
| report_paths: "./tests-smoke-report.xml" | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| check_name: Smoke Test Results | ||
| - name: Publish Artifacts | ||
| if: failure() | ||
| uses: actions/[email protected] | ||
| with: | ||
| name: test-logs | ||
| path: /home/runner/work/chainlink-starknet/chainlink-starknet/tests/e2e/logs | ||