Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed May 17, 2024
1 parent 44b687b commit f2f8b5e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
clippy:
name: Clippy
Expand Down Expand Up @@ -37,6 +41,7 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
cache: true
cache-workspaces: true
- run: just fmt
Expand Down
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
build:
cargo build
cargo build --all

check:
cargo check
cargo check --all

fmt:
cargo +nightly fmt
cargo +nightly fmt --all

clippy:
cargo clippy

clippy-fix:
cargo clippy --fix --allow-dirty --allow-staged
cargo clippy --all --fix --allow-dirty --allow-staged

docker-up:
docker compose up
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.78.0"
components = ["rustc", "cargo", "rust-std", "rust-docs", "rls", "rust-src", "rust-analysis"]
components = ["rustc", "cargo", "rust-std", "rust-docs", "rls", "rust-src", "rust-analysis", "clippy", "rustfmt"]
targets = []

0 comments on commit f2f8b5e

Please sign in to comment.