Skip to content

Merge pull request #44 from valorem-labs-inc/megsdevs/val-575-erc20-s… #56

Merge pull request #44 from valorem-labs-inc/megsdevs/val-575-erc20-s…

Merge pull request #44 from valorem-labs-inc/megsdevs/val-575-erc20-s… #56

Workflow file for this run

name: 'Parallel Test Suite'
on:
push:
branches:
- main
- 'v**'
- 'releases/v**'
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- 'v**'
- 'releases/v**'
jobs:
examples:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@master
with:
submodules: true
# Start docker stack here to allow migrations time to run before the end-to-end tests start
- name: Log in to GHCR
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# Start these here so migrations have time to run while we check formatting and clippy
- name: Init docker dev stack (anvil, redis, db, trade API, indexer)
run: |
docker-compose -f docker-compose.yml up -d
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
components: clippy, rustfmt
# Check formatting, clippy, and run examples test
- name: Check Formatting
run: cargo fmt --all -- --check
working-directory: examples/rust
- name: Build and Test
run: cargo test
working-directory: examples/rust
env:
APP_RPC__URI: http://127.0.0.1:8545