Skip to content

Commit

Permalink
chore(ci): Add check github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgehermo9 committed Oct 1, 2024
1 parent ae6a082 commit 8b6b8aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,26 @@ jobs:
name: format
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: just
- name: Install rustfmt
uses: dtolnay/[email protected]
with:
components: rustfmt
- name: Run rustfmt
run: cargo fmt --check
run: just fmt
clippy:
runs-on: ubuntu-latest
name: clippy
permissions:
contents: read
checks: write
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: just
- name: Install clippy
uses: dtolnay/[email protected]
with:
components: clippy
- name: Run clippy
run: cargo clippy --tests --locked
run: just clippy
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ci: fmt clippy test
fmt:
cargo fmt --check
clippy:
cargo clippy --tests --locked -- -Dwarnings
test:
cargo nextest r --locked

0 comments on commit 8b6b8aa

Please sign in to comment.