Update Clarity Web30 and DeepSpace #2229
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: Rust tests | |
on: | |
push: | |
branches: [master,beta21,beta20,beta22] | |
pull_request: | |
branches: [master,beta21,beta20,beta22] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check Rita and Rita Exit x86 | |
run: cargo check --all | |
test: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run Rita and Rita Exit tests | |
run: RUST_TEST_THREADS=1 cargo test --verbose --all | |
rustfmt: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check code formatting | |
run: rustup component add rustfmt && cargo fmt --all -- --check | |
clippy: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check for Clippy lints | |
run: rustup component add clippy && cargo clippy --all --all-targets --all-features -- -D warnings | |
audit: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run Cargo Audit | |
run: cargo install cargo-audit && cargo audit | |
cross-aarch64: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cross test aarch64 | |
run: cargo install cross && cross test --target aarch64-unknown-linux-musl --verbose -- --test-threads=1 | |
cross-armv7: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cross test armv7 | |
run: cargo install cross && cross test --target armv7-unknown-linux-musleabihf --verbose -- --test-threads=1 | |
integration-test-five-nodes: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh FIVE_NODES | |
integration-test-althea-payment: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh PAYMENTS_ALTHEA | |
integration-test-debts: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh DEBTS_TEST | |
integration-test-eth-payments: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh ETH_PAYMENTS | |
integration-test-multi-exit: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh MULTI_EXIT | |
integration-test-validate-contract: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh CONTRACT_TEST | |
integration-test-db-migration: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run integration test | |
run: bash scripts/integration_tests/all-up-test-ci.sh MIGRATION_TEST |