Skip to content

Commit

Permalink
fix: CI rust actions
Browse files Browse the repository at this point in the history
Signed-off-by: Minh Huy Tran <[email protected]>
  • Loading branch information
NhoxxKienn committed Apr 22, 2024
1 parent 890bed5 commit f8f579b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly

- uses: Swatinem/rust-cache@v1
- name: Cache Cargo dependencies
uses: actions/cache@v4
with:
working-directory: node
path: ~/.cargo
key: rust-deps-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
rust-deps-${{ runner.os }}-
- uses: actions-rs/cargo@v1
name: Build
with:
command: build
args: --manifest-path node/Cargo.toml -q --all-targets --all-features
- name: Build project
run: cargo build --manifest-path node/Cargo.toml --all-targets --all-features
continue-on-error: true

- uses: actions-rs/cargo@v1
name: Integration tests
with:
command: test
args: --manifest-path node/Cargo.toml -p pallet-perun --all-features
- name: Run integration tests
run: cargo test --manifest-path node/Cargo.toml -p pallet-perun --all-features
2 changes: 1 addition & 1 deletion node/pallets/pallet-perun

0 comments on commit f8f579b

Please sign in to comment.