Skip to content

Commit 6ff0e0f

Browse files
committed
Restore githooks and CI
1 parent 4854e35 commit 6ff0e0f

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.githooks/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
cargo fmt --check
4+
cargo clippy -- -D warnings

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ jobs:
1616
- name: Build cache
1717
uses: Swatinem/rust-cache@v2
1818
- name: Test
19-
run: cargo test
19+
run: cargo test
20+
- name: Lints
21+
run: bash .githooks
22+
if: ${{ vars.STRICTNESS }} == 'Strict'

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,4 @@ cargo run
1010

1111
Open <http://localhost:3000/> in your browser.
1212

13-
## Contributing
14-
15-
Before committing, install the our Git hooks:
16-
17-
```
18-
git config --local core.hooksPath .githooks
19-
```
13+
# Completed Chapters

0 commit comments

Comments
 (0)