-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
232 additions
and
221 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,56 +1,56 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- the-merge | ||
pull_request: | ||
name: Contracts (ETH) | ||
jobs: | ||
test: | ||
runs-on: self-hosted | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- job-name: nearbridge test | ||
cmd: | | ||
cd contracts/eth/nearbridge | ||
yarn | ||
yarn test | ||
timeout-minutes: 40 | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# - the-merge | ||
# pull_request: | ||
# name: Contracts (ETH) | ||
# jobs: | ||
# test: | ||
# runs-on: self-hosted | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# include: | ||
# - job-name: nearbridge test | ||
# cmd: | | ||
# cd contracts/eth/nearbridge | ||
# yarn | ||
# yarn test | ||
# timeout-minutes: 40 | ||
|
||
- job-name: nearprover test | ||
cmd: | | ||
cd contracts/eth/nearprover | ||
yarn --cwd ../ | ||
yarn | ||
yarn test | ||
timeout-minutes: 40 | ||
# - job-name: nearprover test | ||
# cmd: | | ||
# cd contracts/eth/nearprover | ||
# yarn --cwd ../ | ||
# yarn | ||
# yarn test | ||
# timeout-minutes: 40 | ||
|
||
- job-name: verify near headers | ||
cmd: | | ||
yarn | ||
cd contracts/eth/ | ||
ci/test_verify_near_headers.sh | ||
timeout-minutes: 40 | ||
# - job-name: verify near headers | ||
# cmd: | | ||
# yarn | ||
# cd contracts/eth/ | ||
# ci/test_verify_near_headers.sh | ||
# timeout-minutes: 40 | ||
|
||
- job-name: verify near proofs | ||
cmd: | | ||
yarn | ||
cd contracts/eth/ | ||
ci/test_verify_near_proofs.sh | ||
timeout-minutes: 40 | ||
# - job-name: verify near proofs | ||
# cmd: | | ||
# yarn | ||
# cd contracts/eth/ | ||
# ci/test_verify_near_proofs.sh | ||
# timeout-minutes: 40 | ||
|
||
name: ${{ matrix.job-name }} | ||
steps: | ||
- name: Install LFS | ||
run: apt-get install git-lfs | ||
# name: ${{ matrix.job-name }} | ||
# steps: | ||
# - name: Install LFS | ||
# run: apt-get install git-lfs | ||
|
||
- name: Clone the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: 'true' | ||
# - name: Clone the repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# lfs: 'true' | ||
|
||
- name: Execute | ||
run: ${{ matrix.cmd }} | ||
timeout-minutes: ${{ matrix.timeout-minutes }} | ||
# - name: Execute | ||
# run: ${{ matrix.cmd }} | ||
# timeout-minutes: ${{ matrix.timeout-minutes }} |
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,96 +1,96 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- the-merge | ||
pull_request: | ||
name: Contracts (NEAR) | ||
jobs: | ||
test: | ||
runs-on: self-hosted | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- job-name: build all rust contracts | ||
cmd: | | ||
cd contracts/near/eth-client | ||
./build.sh | ||
cd ../eth2-client | ||
./build.sh | ||
cd ../eth-prover | ||
./build.sh | ||
git status | ||
changed_files=$(git status --porcelain --untracked-files=no | wc -l) | ||
if [ $changed_files -gt 0 ]; then | ||
echo 'contract changed, please rebuild contract' | ||
exit 1 | ||
fi | ||
timeout-minutes: 40 | ||
# on: | ||
# push: | ||
# branches: | ||
# - master | ||
# - the-merge | ||
# pull_request: | ||
# name: Contracts (NEAR) | ||
# jobs: | ||
# test: | ||
# runs-on: self-hosted | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# include: | ||
# - job-name: build all rust contracts | ||
# cmd: | | ||
# cd contracts/near/eth-client | ||
# ./build.sh | ||
# cd ../eth2-client | ||
# ./build.sh | ||
# cd ../eth-prover | ||
# ./build.sh | ||
# git status | ||
# changed_files=$(git status --porcelain --untracked-files=no | wc -l) | ||
# if [ $changed_files -gt 0 ]; then | ||
# echo 'contract changed, please rebuild contract' | ||
# exit 1 | ||
# fi | ||
# timeout-minutes: 40 | ||
|
||
- job-name: test eth-prover | ||
cmd: | | ||
cd contracts/near/eth-prover | ||
./test.sh | ||
timeout-minutes: 40 | ||
# - job-name: test eth-prover | ||
# cmd: | | ||
# cd contracts/near/eth-prover | ||
# ./test.sh | ||
# timeout-minutes: 40 | ||
|
||
- job-name: test eth-client | ||
cmd: | | ||
cd contracts/near/eth-client | ||
./test.sh | ||
timeout-minutes: 40 | ||
# - job-name: test eth-client | ||
# cmd: | | ||
# cd contracts/near/eth-client | ||
# ./test.sh | ||
# timeout-minutes: 40 | ||
|
||
- job-name: test eth2-client | ||
cmd: | | ||
cd contracts/near/eth2-client | ||
./test.sh | ||
timeout-minutes: 40 | ||
# - job-name: test eth2-client | ||
# cmd: | | ||
# cd contracts/near/eth2-client | ||
# ./test.sh | ||
# timeout-minutes: 40 | ||
|
||
- job-name: test eth2near/contract_wrapper | ||
cmd: | | ||
cd eth2near/contract_wrapper | ||
./test.sh | ||
timeout-minutes: 20 | ||
# - job-name: test eth2near/contract_wrapper | ||
# cmd: | | ||
# cd eth2near/contract_wrapper | ||
# ./test.sh | ||
# timeout-minutes: 20 | ||
|
||
- job-name: test eth2near/finality-update-verify | ||
cmd: | | ||
cd eth2near/finality-update-verify | ||
./test.sh | ||
timeout-minutes: 20 | ||
# - job-name: test eth2near/finality-update-verify | ||
# cmd: | | ||
# cd eth2near/finality-update-verify | ||
# ./test.sh | ||
# timeout-minutes: 20 | ||
|
||
- job-name: test eth2near/eth2-to-near-block-relay-rs | ||
cmd: | | ||
cd eth2near/eth2near-block-relay-rs | ||
./test.sh | ||
timeout-minutes: 20 | ||
# - job-name: test eth2near/eth2-to-near-block-relay-rs | ||
# cmd: | | ||
# cd eth2near/eth2near-block-relay-rs | ||
# ./test.sh | ||
# timeout-minutes: 20 | ||
|
||
- job-name: test eth2near/eth2-contract-init | ||
cmd: | | ||
cd eth2near/eth2-contract-init | ||
./test.sh | ||
timeout-minutes: 20 | ||
# - job-name: test eth2near/eth2-contract-init | ||
# cmd: | | ||
# cd eth2near/eth2-contract-init | ||
# ./test.sh | ||
# timeout-minutes: 20 | ||
|
||
- job-name: test eth2near/eth_rpc_client | ||
cmd: | | ||
cd eth2near/eth_rpc_client | ||
./test.sh | ||
timeout-minutes: 20 | ||
# - job-name: test eth2near/eth_rpc_client | ||
# cmd: | | ||
# cd eth2near/eth_rpc_client | ||
# ./test.sh | ||
# timeout-minutes: 20 | ||
|
||
name: ${{ matrix.job-name }} | ||
steps: | ||
- name: Install LFS | ||
run: apt-get install git-lfs | ||
# name: ${{ matrix.job-name }} | ||
# steps: | ||
# - name: Install LFS | ||
# run: apt-get install git-lfs | ||
|
||
- name: Clone the repository | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: 'true' | ||
# - name: Clone the repository | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# lfs: 'true' | ||
|
||
- name: Checkout LFS objects | ||
run: git lfs checkout | ||
# - name: Checkout LFS objects | ||
# run: git lfs checkout | ||
|
||
- name: Execute | ||
env: | ||
ETH1_INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | ||
run: ${{ matrix.cmd }} | ||
timeout-minutes: ${{ matrix.timeout-minutes }} | ||
# - name: Execute | ||
# env: | ||
# ETH1_INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | ||
# run: ${{ matrix.cmd }} | ||
# timeout-minutes: ${{ matrix.timeout-minutes }} |
Oops, something went wrong.