-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from smartcontractkit/develop
Release contracts v1.0 (#2)
- Loading branch information
Showing
158 changed files
with
4,584 additions
and
1,465 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: chaos | ||
name: e2e_chaos_tests | ||
on: | ||
schedule: | ||
- cron: '0 */3 * * *' | ||
|
@@ -11,8 +11,8 @@ on: | |
type: string | ||
|
||
jobs: | ||
build_custom_cl_image: | ||
name: Build custom CL image | ||
e2e_chaos_build_custom_chainlink_image: | ||
name: E2E Chaos 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 | ||
with: | ||
|
@@ -27,10 +27,11 @@ jobs: | |
AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
build: | ||
e2e_chaos_build_contracts: | ||
name: E2E Chaos Build Contracts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1 | ||
- name: Cache cargo registry | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -42,24 +43,29 @@ jobs: | |
path: ~/.cargo/git | ||
key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Build Artifacts | ||
run: | | ||
make contracts_compile | ||
- uses: actions/upload-artifact@master | ||
run: make contracts_compile | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
chaos: | ||
e2e_run_chaos_tests: | ||
name: E2E Run Chaos Tests | ||
runs-on: ubuntu-latest | ||
needs: [build, build_custom_cl_image] | ||
needs: [e2e_chaos_build_contracts, e2e_chaos_build_custom_chainlink_image] | ||
env: | ||
CGO_ENABLED: 1 | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
- name: Setup go | ||
uses: actions/setup-go@v1 | ||
uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1 | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v14 | ||
with: | ||
go-version: 1.17.2 | ||
install_url: https://nixos-nix-install-tests.cachix.org/serve/vij683ly7sl95nnhb67bdjjfabclr85m/install | ||
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve' | ||
extra_nix_config: | | ||
experimental-features = nix-command flakes | ||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
|
@@ -85,14 +91,11 @@ jobs: | |
${{ runner.os }}-go- | ||
- name: Download Go Vendor Packages | ||
if: steps.cache-packages.outputs.cache-hit != 'true' | ||
run: go mod download | ||
run: nix develop -c make download | ||
- name: Install Ginkgo CLI | ||
run: | | ||
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected] | ||
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected] | ||
go get github.com/onsi/ginkgo/v2/ginkgo/[email protected] | ||
go install github.com/onsi/ginkgo/v2/ginkgo | ||
- uses: actions/download-artifact@master | ||
run: nix develop -c make install | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
|
@@ -103,8 +106,10 @@ jobs: | |
CHAINLINK_IMAGE: 795953128386.dkr.ecr.us-west-2.amazonaws.com/chainlink | ||
CHAINLINK_VERSION: custom.${{ github.sha }} | ||
run: | | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
ginkgo tests/e2e/chaos | ||
PATH=$PATH:$(go env GOPATH)/bin | ||
export PATH | ||
cp -r artifacts packages-ts/gauntlet-terra-contracts/artifacts/bin | ||
nix develop -c make test_chaos | ||
- name: Publish Test Results | ||
uses: mikepenz/action-junit-report@v2 | ||
if: always() | ||
|
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: e2e_tests_custom_cl_image | ||
name: e2e_tests_custom_cl | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
@@ -8,14 +8,13 @@ on: | |
required: true | ||
default: develop | ||
type: string | ||
|
||
jobs: | ||
build: | ||
e2e_custom_build_artifacts: | ||
name: E2E Custom Build Artifacts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ inputs.repo_name }} | ||
ref: ${{ inputs.ref }} | ||
- uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1 | ||
- name: Cache cargo registry | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -27,14 +26,14 @@ jobs: | |
path: ~/.cargo/git | ||
key: ${{ runner.os }}-v2-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Build Artifacts | ||
run: | | ||
make contracts_compile | ||
- uses: actions/upload-artifact@master | ||
run: make contracts_compile | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
build_custom_cl_image: | ||
name: Build custom CL image | ||
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 | ||
with: | ||
|
@@ -49,17 +48,15 @@ jobs: | |
AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_KUBECONFIG: ${{ secrets.QA_KUBECONFIG }} | ||
smoke: | ||
e2e_cutsom_run_smoke_tests: | ||
name: E2E Custom Run Smoke Tests | ||
runs-on: ubuntu-latest | ||
needs: [build, build_custom_cl_image] | ||
needs: [e2e_custom_build_artifacts, e2e_custom_build_custom_chainlink_image] | ||
env: | ||
CGO_ENABLED: 1 | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{ inputs.repo_name }} | ||
ref: ${{ inputs.ref }} | ||
uses: actions/checkout@f25a3a9f25bd5f4c5d77189cab02ff357b5aedeb # v2.4.1 | ||
- name: Install Nix | ||
uses: cachix/install-nix-action@v14 | ||
with: | ||
|
@@ -95,25 +92,22 @@ jobs: | |
if: steps.cache-packages.outputs.cache-hit != 'true' | ||
run: nix develop -c make download | ||
- name: Install Ginkgo CLI | ||
run: | | ||
nix develop -c make install | ||
- uses: actions/download-artifact@master | ||
run: nix develop -c make install | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@master | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
- name: Generate gauntlet executable | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
npm config set -- '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | ||
nix develop -c make build_js | ||
run: nix develop -c make build_js | ||
- name: Run Tests | ||
env: | ||
SELECTED_NETWORKS: localterra | ||
CHAINLINK_IMAGE: 795953128386.dkr.ecr.us-west-2.amazonaws.com/chainlink | ||
CHAINLINK_VERSION: custom.${{ github.sha }} | ||
run: | | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
PATH=$PATH:$(go env GOPATH)/bin | ||
export PATH | ||
cp -r artifacts packages-ts/gauntlet-terra-contracts/artifacts/bin | ||
nix develop -c make test_smoke | ||
- name: Publish Test Results | ||
|
Oops, something went wrong.