Skip to content

Commit

Permalink
Put leap integration test into own job in workflow.
Browse files Browse the repository at this point in the history
Use leap and cdt versions 4 with the leap integration test.
  • Loading branch information
oschwaldp-oci committed Jul 19, 2023
1 parent 4995c16 commit 0e9d95c
Showing 1 changed file with 60 additions and 6 deletions.
66 changes: 60 additions & 6 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ jobs:
path: contract-test.tar.gz
if-no-files-found: error

- name: Test Leap Integration
if: ${{ matrix.DWITH_TEST_ACTIONS == 'on' }}
run: |
pip install web3
./tests/leap/nodeos_eos_evm_test.py --eos-evm-contract-root ./contract/build --eos-evm-build-root ./build --use-tx-wrapper ./peripherals/tx_wrapper
- name: Test EOS EVM Contract
run: .github/workflows/test-contract.sh
env:
Expand All @@ -114,3 +108,63 @@ jobs:
name: test-results.xml
path: test-results.xml
if-no-files-found: error

leap-integration:
runs-on: ubuntu-20.04
name: EOS EVM Leap Integration Tests
env:
CC: gcc-10
CXX: g++-10
DCMAKE_BUILD_TYPE: 'Release'

steps:
- name: Authenticate
id: auth
uses: AntelopeIO/github-app-token-action@v1
with:
app_id: ${{ secrets.TRUSTEVM_CI_APP_ID }}
private_key: ${{ secrets.TRUSTEVM_CI_APP_KEY }}

- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: 'recursive'
token: ${{ steps.auth.outputs.token }}

- name: Download CDT
uses: AntelopeIO/asset-artifact-download-action@v2
with:
owner: AntelopeIO
repo: cdt
target: 'v4'
prereleases: false
file: 'cdt_.*amd64.deb'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install CDT
run: sudo apt-get install -y ./cdt*.deb

- name: Build EOS EVM Contract
run: .github/workflows/build-contract.sh
env:
DWITH_TEST_ACTIONS: ${{ matrix.DWITH_TEST_ACTIONS }}

- name: Download Leap - dev binary
uses: AntelopeIO/asset-artifact-download-action@v2
with:
owner: AntelopeIO
repo: leap
target: 'v4'
prereleases: false
file: 'leap-dev.*(x86_64|amd64).deb'
container-package: experimental-binaries
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Leap
run: sudo apt-get install -y ./leap*.deb

- name: Test Leap Integration
run: |
pip install web3
./tests/leap/nodeos_eos_evm_test.py --eos-evm-contract-root ./contract/build --eos-evm-build-root ./build --use-tx-wrapper ./peripherals/tx_wrapper

0 comments on commit 0e9d95c

Please sign in to comment.