Skip to content

Commit

Permalink
ci: add clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkov committed Dec 30, 2023
1 parent eeaca53 commit d9ebb78
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,40 @@ on:
branches:
- master
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: stable-x86_64-unknown-linux-gnu
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: test
all-features: true
args: --verbose
publish:
needs: test
name: Publish
needs:
- test
- clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ categories = ["web-programming", "http", "middleware"]
ntex = "0.7"

[dev-dependencies]
ntex = { version = "0.7", features=["tokio"] }
ntex = { version = "0.7", features = ["tokio"] }

0 comments on commit d9ebb78

Please sign in to comment.