Skip to content

Change testnet chain id to 6633438 #271

Change testnet chain id to 6633438

Change testnet chain id to 6633438 #271

name: Integration tests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
with:
working-directory: integration-tests/
- name: Build Integration Tests
run: cd integration_tests && cargo check --all --verbose
native_token:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
continue-on-error: true
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Prune cache to keep the size down
run: docker builder prune -af && docker system prune -af
- name: Test the native token features of the EVM
run: tests/all-up-test.sh NATIVE_TOKEN
lockup:
runs-on: ubuntu-latest
needs: native_token
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Lock up the chain and ensure funds are not transferrable
run: tests/all-up-test.sh LOCKUP
env:
NO_IMAGE_BUILD: True
microtx_fees:
runs-on: ubuntu-latest
needs: native_token
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Assert that fees are collected by the microtx module
run: tests/all-up-test.sh MICROTX_FEES
env:
NO_IMAGE_BUILD: True
erc20_conversion:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Test the erc20 module's token conversion functionality
run: tests/all-up-test.sh ERC20_CONVERSION
env:
NO_IMAGE_BUILD: True
liquid_accounts:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Test the microtx module's liquid infrastructure accounts functions
run: tests/all-up-test.sh LIQUID_ACCOUNTS
env:
NO_IMAGE_BUILD: True
ica_host:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Test the interchain accounts host module on Althea-L1
run: tests/all-up-test.sh ICA_HOST
env:
NO_IMAGE_BUILD: True
ONBOARDING_DEFAULT_PARAMS:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module with the default params
run: tests/all-up-test.sh ONBOARDING_DEFAULT_PARAMS
env:
NO_IMAGE_BUILD: True
ONBOARDING_DISABLED_WHITELISTED:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module disabled with a whitelisted channel
run: tests/all-up-test.sh ONBOARDING_DISABLED_WHITELISTED
env:
NO_IMAGE_BUILD: True
ONBOARDING_DISABLE_AFTER:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module permissively, but disables it after a transfer
run: tests/all-up-test.sh ONBOARDING_DISABLE_AFTER
env:
NO_IMAGE_BUILD: True
ONBOARDING_DELIST_AFTER:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Starts the onboarding module permissively, but removes the channel from the whilelist after a transfer
run: tests/all-up-test.sh ONBOARDING_DELIST_AFTER
env:
NO_IMAGE_BUILD: True
DEX:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Performs basic DEX tests
run: tests/all-up-test.sh DEX
env:
NO_IMAGE_BUILD: True
DEX_UPGRADE:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Tests the DEX callpath upgrade functionality
run: tests/all-up-test.sh DEX_UPGRADE
env:
NO_IMAGE_BUILD: True
DEX_SAFE_MODE:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Tests the DEX safe mode lockdown functionality
run: tests/all-up-test.sh DEX_SAFE_MODE
env:
NO_IMAGE_BUILD: True
DEX_OPS_PROPOSAL:
needs: native_token
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jpribyl/[email protected]
with:
key: integration-test-cache-{hash}
restore-keys: |
integration-test-cache-
- name: Tests the nativedex OpsProposal function
run: tests/all-up-test.sh DEX_OPS_PROPOSAL
env:
NO_IMAGE_BUILD: True