Skip to content

Commit

Permalink
ci: update to use just + check leptosfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
BrewingWeasel committed Nov 17, 2023
1 parent fbc8b7e commit d892a94
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: extractions/setup-just@v1

- name: setup
- run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev glibc-source libc6
- name: Rust setup
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy

- name: Install leptosfmt
run: cargo install leptosfmt

- uses: actions/checkout@v3
- name: Run lints
run: |
cargo clippy -- -D warnings
cargo fmt -- --check
- name: Run tests
run: cargo test --verbose
- name: check
uses: actions/checkout@v3
run: just check
2 changes: 1 addition & 1 deletion .rusty-hook.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[hooks]
pre-commit = "just pre-commit"
pre-commit = "just check"
post-commit = "echo commited!"

[logging]
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fix: && format
test:
cargo test

pre-commit: test lint
check: test lint

0 comments on commit d892a94

Please sign in to comment.