Add onboarding module for automatic ERC20 wrapping #175
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
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 TEST_NAME | |
env: | |
NO_IMAGE_BUILD: True |