Skip to content

Merge pull request #65 from Samyak2/ci-cd-overhaul #140

Merge pull request #65 from Samyak2/ci-cd-overhaul

Merge pull request #65 from Samyak2/ci-cd-overhaul #140

on: [push, pull_request]
name: Lints and checks
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy,rustfmt"
- uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --verbose
- name: Run tests
run: cargo test --verbose
if: success() || failure()
- name: Format
run: cargo fmt --check
if: success() || failure()
- name: Run Clippy
run: cargo clippy -- -D warnings
if: success() || failure()
- name: Check word lists
run: ./scripts/check_word_lists.sh
if: success() || failure()