Skip to content

Commit

Permalink
Merge pull request #37 from sancane/ci
Browse files Browse the repository at this point in the history
Add some useful workflows
  • Loading branch information
sancane authored Oct 8, 2023
2 parents fb9b23e + 784da15 commit fc88dbd
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo clippy --all-targets --all-features
- name: Run tests
run: cargo test --verbose

Expand All @@ -48,3 +46,35 @@ jobs:

- name: Run cargo spellcheck
run: cargo-spellcheck --code 1 --cfg=.github/workflows/spellchecker.cfg

cargo_careful:

runs-on: ubuntu-latest

steps:
- uses: taiki-e/install-action@v2
with:
tool: cargo-careful

- uses: actions/checkout@v3
- name: Install minimal nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly

- name: Run cargo careful
run: cargo +nightly careful test

cargo_machete:

runs-on: ubuntu-latest

steps:
- uses: taiki-e/install-action@v2
with:
tool: cargo-machete
- uses: actions/checkout@v3

- name: Run cargo machete
run: cargo machete

0 comments on commit fc88dbd

Please sign in to comment.