Skip to content

feat: configuration improvements #686

feat: configuration improvements

feat: configuration improvements #686

Workflow file for this run

name: Contracts E2E tests
on:
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
contract_test:
strategy:
fail-fast: false
matrix:
contract: [token, pix, periphery, compound, yield, multisig]
name: E2E InMemory on ${{ matrix.contract }}
runs-on: ubuntu-latest
timeout-minutes: 35
concurrency:
group: ${{ github.workflow }}-${{ matrix.contract }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache Cargo Registry and Target Directory
uses: actions/[email protected]
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
key: ${{ runner.os }}-cargo-${{ github.workflow }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ github.workflow }}
- name: Set up Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Set up Just
uses: extractions/setup-just@v1
- name: Set up ASDF Version Manager
uses: asdf-vm/actions/setup@v3
- name: Install Node.js
run: |
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs 20.10.0
asdf global nodejs 20.10.0
- name: Set up Test and clone repositories
run: |
cargo install killport || true
cargo install wait-service || true
just contracts-clone --${{ matrix.contract }}
- name: Run e2e tests
run: just contracts-test-stratus --${{ matrix.contract }}