Skip to content

🚧 Use theme crate instead of hard-code. #69

🚧 Use theme crate instead of hard-code.

🚧 Use theme crate instead of hard-code. #69

Workflow file for this run

---
name: Run Tests
on: [push, pull_request]
jobs:
rustfmt:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo fmt -- --check
run: cargo +nightly fmt --all -- --check --unstable-features
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo clippy
run: cargo clippy --all --all-features
env:
RUSTFLAGS: "--cfg releasing"
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --all-features --all
env:
RUSTFLAGS: "--cfg releasing"