Skip to content

Commit

Permalink
fix: chmod files in gh-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Mar 8, 2024
1 parent 9c5aae8 commit 8eb8ff3
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
run: cargo install just
- name: Run Docker Compose
run: docker compose up lnd1 -d
- name: Set permissions for admin.macaroon
run: chmod -R +r ./data/lnd1
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
run: just run-tests
- name: Run itests
run: just run-itests
coverage:
Expand Down
95 changes: 91 additions & 4 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"moksha-cli",
"moksha-wallet",
"moksha-mint",
"integrationtests",
]

[profile.dev]
Expand Down
4 changes: 1 addition & 3 deletions integrationtests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "moksha-integrationtests"
name = "integrationtests"
version = "0.2.1"
edition = "2021"
repository = "https://github.com/ngutech21/moksha"
Expand Down Expand Up @@ -43,5 +43,3 @@ moksha-mint = { path = "../moksha-mint" }
moksha-wallet = { path = "../moksha-wallet" }
moksha-core = { path = "../moksha-core" }
tempfile = "3.9.0"

[workspace]
9 changes: 7 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ clean:
cargo clean




# check code for typos
[no-exit-message]
typos:
Expand Down Expand Up @@ -59,10 +61,13 @@ run-cli *ARGS:
RUST_BACKTRACE=1 cargo run --bin moksha-cli -- -m http://127.0.0.1:3338 -d ./data/wallet {{ARGS}}


run-tests:
cargo test --workspace --exclude integrationtests


# run integrationtests
run-itests:
cd integrationtests && \
cargo test
cargo test -p integrationtests

# build the mint docker-image
build-docker:
Expand Down

0 comments on commit 8eb8ff3

Please sign in to comment.