Skip to content

Commit 7cd320e

Browse files
authored
chore: Update build to use binstall (#109)
* Update build to use binstall * Move where npm ci is located
1 parent c3d9fbf commit 7cd320e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/node.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,22 @@ jobs:
3131
with:
3232
tag: testing
3333
network: local
34-
# Debug step
35-
- name: Debug Stellar container
36-
run: |
37-
docker ps
38-
docker logs $(docker ps -q --filter ancestor=stellar/quickstart:testing)
39-
curl -v http://localhost:8000/rpc || true
40-
4134
- run: sudo apt-get update && sudo apt-get install -y libudev-dev libdbus-1-dev pkg-config
35+
- name: Install cargo-binstall
36+
uses: cargo-bins/cargo-binstall@v1.15.6
4237
- name: Check for stellar-scaffold binary
4338
run: |
4439
if ! command -v stellar-scaffold &> /dev/null; then
4540
echo "stellar-scaffold not found, installing..."
46-
cargo install --git https://github.com/ahalabs/scaffold-stellar --branch main stellar-scaffold-cli
41+
cargo binstall stellar-scaffold-cli
4742
else
4843
echo "stellar-scaffold already installed. Clear cache to force reinstall."
4944
fi
45+
- run: npm ci
5046
- run: npm run lint
5147
- run: npx prettier . --check
5248
- name: Build clients before building the project
5349
run: STELLAR_SCAFFOLD_ENV=development stellar-scaffold build --build-clients
54-
- run: npm ci
5550
- run: npm run install:contracts
5651
- run: npm run build
5752
- name: Run tests

0 commit comments

Comments
 (0)