Skip to content

Update to new drift-rs version #164

Update to new drift-rs version

Update to new drift-rs version #164

Workflow file for this run

name: Build
on:
push:
branches:
- master
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
pull_request:
branches:
- master
paths:
- "**.rs"
- "**.toml"
- "**.lock"
- ".github/workflows/*.yml"
jobs:
format-build-test:
runs-on: ubicloud
timeout-minutes: 45
steps:
- name: Check out
uses: actions/checkout@v2
- name: Config rust toolchain
run: |
rustup update stable && rustup default stable
rustup component add rustfmt
rustup show active-toolchain
rustup install 1.76.0-x86_64-unknown-linux-gnu
- name: Format
run: cargo fmt --all -- --check
- name: Build
run: |
cargo -V
cargo check
- name: Test
env:
DRIFT_GATEWAY_KEY: ${{ secrets.DRIFT_GATEWAY_KEY }}
# limit test parallelism to prevent hitting RPC rate-limits
run: |
cargo -V
cargo test -vv --all -- --test-threads=1