Merge pull request #40 from valorem-labs-inc/alcibiades/val-1573-simp… #38
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: '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 |