Fmt so we can deploy in CircleCI, which I believe goes to Digital Ocean #19
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: Rust Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: protobuf-compiler | |
version: v0 | |
- name: Setup | Rust | |
uses: ATiltedTree/setup-rust@v1 | |
with: | |
rust-version: nightly | |
components: clippy | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v0-rust" | |
- name: Build | Lint | |
run: cargo clippy --all-targets --no-deps --locked | |
doc: | |
name: Doc | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: protobuf-compiler | |
version: v0 | |
- name: Setup | Rust | |
uses: ATiltedTree/setup-rust@v1 | |
with: | |
rust-version: nightly | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v0-rust" | |
- name: Cargo Doc | |
run: cargo doc --workspace --no-deps --locked | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | Rust | |
uses: ATiltedTree/setup-rust@v1 | |
with: | |
rust-version: nightly | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: protobuf-compiler | |
version: v0 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "v0-rust" | |
- name: Test | |
run: cargo test --locked |