Skip to content

Commit

Permalink
Modified workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski committed Nov 27, 2024
1 parent 00f8e71 commit 920d560
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/framework-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: "framework -> target"
- name: Install cargo-machete
uses: clechasseur/rs-cargo@v2
with:
command: install
args: cargo-machete
- name: Machete
uses: bnjbvr/cargo-machete@main
uses: clechasseur/rs-cargo@v2
with:
command: machete framework/contracts/** framework/packages/**
25 changes: 10 additions & 15 deletions .github/workflows/modules-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
--mutually-exclusive-features \
wynd,osmosis,astroport,bow,terraswap,astrovault,testing,osmosis-test,node-tests,interface,cw-orch,schema \
--lib --tests
# Find any unused dependencies
unused-deps:
runs-on: ubuntu-latest
Expand All @@ -108,21 +108,16 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.SSH_PRIVATE_KEY_MULTI_TEST }}
${{ secrets.SSH_PRIVATE_KEY_CW_ORCH_INTERCHAIN }}
- name: Setup sccache
uses: mozilla-actions/[email protected]
with:
version: "v0.8.1"
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo install cargo-udeps
uses: taiki-e/install-action@cargo-udeps
- name: cargo install cargo-workspaces
run: cargo +stable install cargo-workspaces
- name: cargo udeps modules
working-directory: ./modules
run: cargo workspaces exec cargo +nightly udeps
- name: Install cargo-machete
uses: clechasseur/rs-cargo@v2
with:
command: install
args: cargo-machete
- name: Machete
uses: clechasseur/rs-cargo@v2
with:
command: machete modules/**

0 comments on commit 920d560

Please sign in to comment.