Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/contracts-eth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,50 @@
name: Contracts (ETH)
jobs:
test:
runs-on: self-hosted
runs-on: ubuntu-latest
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: 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

name: ${{ matrix.job-name }}
steps:
- name: Install LFS
run: apt-get install git-lfs
run: sudo apt-get install git-lfs

- name: Clone the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: 'true'

- name: Execute
run: ${{ matrix.cmd }}
timeout-minutes: ${{ matrix.timeout-minutes }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
32 changes: 10 additions & 22 deletions .github/workflows/contracts-near.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,90 +7,78 @@
name: Contracts (NEAR)
jobs:
test:
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- job-name: build all rust contracts
- job-name: build 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
cd contracts/near
rustup target add wasm32-unknown-unknown
make build
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 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/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-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

name: ${{ matrix.job-name }}
steps:
- name: Install cargo-near
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh

- name: Install LFS
run: apt-get install git-lfs
run: sudo apt-get install git-lfs

- name: Clone the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: 'true'

- 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 }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
98 changes: 0 additions & 98 deletions .github/workflows/e2e.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Lint
steps:
- name: Clone the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sigma-prime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:

- name: Install LFS
run: apt-get install git-lfs
run: sudo apt-get install git-lfs

- name: Clone the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: 'true'

Expand Down
Loading
Loading