Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,44 @@ env:
CARGO_TERM_COLOR: always
RUST_LOG: info
RUST_BACKTRACE: 1
RUSTFLAGS: "-Dwarnings"
CI: true

jobs:
ci:
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: 📥 Checkout code
uses: actions/checkout@v4

- name: Install toolchain
- name: 🛠️ Install Rust toolchain
uses: moonrepo/setup-rust@v1
with:
components: clippy,rustfmt
cache-base: main
bins: cargo-tarpaulin

- name: Check formatting
components: clippy,rustfmt

- name: 🎨 Check formatting
run: cargo fmt --all --check

- name: Run Clippy
- name: 🔍 Run Clippy
run: cargo clippy

- name: Run Build
run: cargo build
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4

- name: 🛠️ Install Rust toolchain
uses: moonrepo/setup-rust@v1
with:
bins: cargo-tarpaulin

- name: 🏗️ Build
run: cargo build --release

- name: Run tests with coverage
- name: 🧪 Run tests with coverage
run: |
cargo tarpaulin --all-features --workspace --out xml

Expand Down
5 changes: 5 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[toolchain]
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
# https://rust-lang.github.io/rustup/concepts/profiles.html
profile = "default"
channel = "1.80"