Definition transformations WIP #151
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: CI | |
on: [push, pull_request] | |
env: | |
RUSTFLAGS: -D warnings | |
CARGO_TERM_COLOR: always | |
TEST_STATS_DELAY: 5000 | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Lint (clippy) | |
run: cargo clippy | |
- name: Lint (rustfmt) | |
run: cargo fmt --all --check | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust-version: [ stable ] | |
services: | |
rabbitmq: | |
image: rabbitmq:3-management | |
ports: | |
- 15672:15672 | |
- 5672:5672 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.rust-version }} | |
- name: Wait for node to start booting | |
run: sleep 15 | |
- name: Configure broker | |
run: RUST_HTTP_API_CLIENT_RABBITMQCTL=DOCKER:${{job.services.rabbitmq.id}} bin/ci/before_build.sh | |
- name: Run cargo test | |
run: cargo test --workspace --no-fail-fast |