Skip to content

Commit

Permalink
add linting options (#214)
Browse files Browse the repository at this point in the history
Linter setup for the stabilization track
  • Loading branch information
bircni authored Sep 27, 2024
1 parent 2005e8f commit 77a7eaa
Show file tree
Hide file tree
Showing 14 changed files with 808 additions and 616 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
name: Rust
name: CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

env:
CARGO_TERM_COLOR: always
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
ci:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint
run: cargo clippy --verbose -- -D warnings
- name: Checkout code
uses: actions/checkout@v4

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: cargo test --verbose
- name: cargo build
run: cargo build

- name: cargo fmt
run: cargo fmt --all -- --check

- name: cargo clippy
run: cargo clippy -- -D warnings

- name: cargo test
run: cargo test
Loading

0 comments on commit 77a7eaa

Please sign in to comment.