Skip to content

Commit

Permalink
Merge pull request #118 from greyblake/setup-typos
Browse files Browse the repository at this point in the history
Setup typos
  • Loading branch information
greyblake committed Jan 6, 2024
2 parents 67effeb + c8dc699 commit 5e4b930
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,20 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy

- name: Run examples
run: |
for example in $(ls ./examples/); do
cargo run --bin $example
done
typos:
name: Typos
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: typos-action
uses: crate-ci/typos@v1.17.0

6 changes: 5 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
all: fmt test-all clippy examples
all: fmt test-all clippy examples typos

test-all:
cargo test
Expand Down Expand Up @@ -28,3 +28,7 @@ clippy:

examples:
for example in `ls examples`; do cargo run --bin $example; done

typos:
which typos >/dev/null || cargo install typos-cli
typos

0 comments on commit 5e4b930

Please sign in to comment.