Skip to content

CI tester

CI tester #2582

Workflow file for this run

name: e2e_tests_custom_cl
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_artifacts:
name: E2E Custom Build Artifacts
runs-on: ubuntu-latest
container:
image: projectserum/build:v0.22.1
env:
RUSTUP_HOME: "/root/.rustup"
FORCE_COLOR: 1
steps:
- name: Install latest Git version (>= 2.18.0) for actions/checkout
run: |
apt-get update
apt-get install software-properties-common -y
add-apt-repository ppa:git-core/ppa
apt update
apt install git -y
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1
- uses: smartcontractkit/[email protected]
id: tool-versions
- name: Setup go ${{ steps.tool-versions.outputs.golang_version }}
uses: actions/setup-go@v2
with:
go-version: ${{ steps.tool-versions.outputs.golang_version }}
- run: echo "$HOME"
- run: echo "$PATH"
- run: yarn install --frozen-lockfile
- name: Generate build artifacts for go bindings check
run: anchor build
working-directory: contracts
- name: Check generated go bindings are up to date
run: |
go install github.com/gagliardetto/[email protected]
./scripts/anchor-go-gen.sh
git diff --stat --exit-code
- name: Generate program_ids
run: ./scripts/programs-keys-gen.sh
- name: Generate build artifacts with custom program_ids
run: anchor build
working-directory: contracts
- name: Upload Artifacts
uses: actions/upload-artifact@master
with:
name: target
path: contracts/target/deploy
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 61 in .github/workflows/e2e_custom_cl.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e_custom_cl.yml

Invalid workflow file

error parsing called workflow ".github/workflows/e2e_custom_cl.yml" -> "smartcontractkit/chainlink/.github/workflows/build-custom.yml@develop" : failed to fetch workflow: workflow was not found.
with:
cl_repo: smartcontractkit/chainlink
# by default we are integrating with develop
cl_ref: ${{ github.event.inputs.cl_branch_ref }}
# commit of the caller branch
dep_solana_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 }}
e2e_custom_run_smoke_tests:
name: E2E Custom Run Smoke Tests
runs-on: ubuntu-latest
needs: [e2e_custom_build_artifacts, e2e_custom_build_custom_chainlink_image]
steps:
- name: Checkout the repo
uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1
- uses: smartcontractkit/[email protected]
id: tool-versions
- name: Setup go ${{ steps.tool-versions.outputs.golang_version }}
uses: actions/setup-go@v2
with:
go-version: ${{ steps.tool-versions.outputs.golang_version }}
- 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
~/go/bin
key: ${{ runner.os }}-go2-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go2-
- name: Download Go Vendor Packages
if: steps.cache-packages.outputs.cache-hit != 'true'
run: make download
- name: Install Ginkgo CLI
if: steps.cache-packages.outputs.cache-hit != 'true'
run: make install
- name: Check for ginkgo ls
run: ls ~/go/bin/
- name: Download Artifacts
uses: actions/download-artifact@master
with:
name: target
path: contracts/target/deploy
- name: Env vars
run: env
- name: Run Tests
env:
SELECTED_NETWORKS: solana
CHAINLINK_IMAGE: 795953128386.dkr.ecr.us-west-2.amazonaws.com/chainlink
CHAINLINK_VERSION: custom.${{ github.sha }}
CGO_ENABLED: 1
run: |
PATH=$PATH:$(go env GOPATH)/bin
export PATH
make test_smoke
- 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-solana/chainlink-solana/tests/e2e/logs