Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Compile & verify integration #45

Compile & verify integration

Compile & verify integration #45

Workflow file for this run

name: (ci/cd) Rust Checks
on:
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- run: cd api && cargo build --all
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- run: cd api && cargo +nightly fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- run: cd api && cargo clippy --all -- -D warnings
taplo:
name: Taplo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
version: "0.9.0"
locked: true
- run: taplo format --check --diff 1>&2
machete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Detect unused dependencies with Machete
uses: bnjbvr/cargo-machete@main