Bringing back middleware mode. The following assumptions were made: #402
Workflow file for this run
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-casper-event-sidecar | |
on: | |
push: | |
branches: | |
- "dev" | |
- "feat-*" | |
- "release-*" | |
- "rc-*" | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- "dev" | |
- "feat-*" | |
- "release-*" | |
paths-ignore: | |
- '**.md' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2 | |
- uses: Swatinem/rust-cache@6720f05bc48b77f96918929a9019fb2203ff71f8 | |
with: | |
shared-key: ${{ matrix.os }} | |
- name: update toolchain | |
run: rustup update | |
- name: fmt | |
run: cargo fmt -- --check | |
- name: clippy | |
run: cargo clippy --all-targets -- --deny warnings | |
- name: audit | |
# Hope to get to here: | |
# run: cargo audit --deny warnings | |
# RUSTSEC-2022-0090 I don't think we have much power over that, it's a transitive dependency of sqlx. | |
# We need to keep an eye on the newest sqlx-core update and apply it ASAP. | |
run: cargo audit --ignore RUSTSEC-2022-0090 | |
- name: test | |
run: cargo test | |
- name: install cargo packaging tools | |
run: | | |
cargo install cargo-deb | |
- name: deb | |
run: cargo deb --package casper-event-sidecar |