Skip to content

Commit

Permalink
ci: check lint & fmt (#2)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Dec 14, 2023
1 parent e3ca784 commit b496991
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Lint
run: cargo clippy -- -D warnings
- name: Format
run: cargo fmt --check
2 changes: 1 addition & 1 deletion src/bin/10.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use derive_more::Constructor;
use grid::Grid;
use std::str::FromStr;
use strum::IntoEnumIterator;
use derive_more::Constructor;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, strum::EnumIter)]
enum Direction {
Expand Down

0 comments on commit b496991

Please sign in to comment.