Skip to content

Commit

Permalink
fix: start dockercontainer before coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Mar 9, 2024
1 parent 973ea1e commit a5415bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
run: docker compose up lnd1 -d
- name: Build
run: cargo build --verbose
# - name: Set permissions for admin.macaroon
# run: sudo chmod a+rw ./data/lnd1/data/chain/bitcoin/regtest/admin.macaroon
# - name: Set permissions for tls.cert
# run: sudo chmod a+rw ./data/lnd1/tls.cert
- name: chmod data-dir
run: sudo chmod -R a+rwx ./data
- name: Run tests
Expand All @@ -53,6 +49,10 @@ jobs:
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Run Docker Compose
run: docker compose up lnd1
- name: chmod data-dir
run: sudo chmod -R a+rwx ./data
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
- name: Upload to codecov.io
Expand Down

0 comments on commit a5415bc

Please sign in to comment.