Skip to content

Commit

Permalink
feat: add ci job to check unused dependencies (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
VladasZ authored Jun 6, 2024
1 parent 3f27a89 commit 6b12bb1
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ jobs:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]

unused-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for unused dependencies
run: |
cargo install cargo-machete --locked
cargo machete
lint:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -97,7 +106,7 @@ jobs:
path: measured.txt

push:
needs: [ check-binary-hash, build, typos, lint, unit-tests, integration-tests, measure, mutation-tests ]
needs: [ check-binary-hash, build, typos, unused-dependencies, lint, unit-tests, integration-tests, measure, mutation-tests ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ jobs:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]

unused-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for unused dependencies
run: |
cargo install cargo-machete --locked
cargo machete
lint:
runs-on: ubuntu-latest
steps:
Expand Down
12 changes: 0 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,4 @@ sweat-model = { workspace = true, features = ["integration-api"] }
nitka = { workspace = true }
near-workspaces = { workspace = true }

maplit = "1.0"
near-units = "0.2.0"
tokio = { version = "1.18.1", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3.11", features = ["env-filter"] }
pkg-config = "0.3.1"
1 change: 0 additions & 1 deletion model/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ release-api = []


[dependencies]
anyhow = { workspace = true }
near-sdk = { workspace = true }

nitka-proc = { workspace = true }
Expand Down
Binary file modified res/sweat_jar.wasm
Binary file not shown.

0 comments on commit 6b12bb1

Please sign in to comment.