-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.34 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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