Skip to content

Commit 22ef878

Browse files
authored
CI: Run substrate-contracts-node in GHA (#1425)
* Run `substrate-contracts-node` for GHA * Revert me: Run on PR * Fix file mode * Fix path to binary * Distinguish between Mac and Windows * Fix config syntax * Revert "Revert me: Run on PR" This reverts commit ee2515d.
1 parent 4156112 commit 22ef878

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/examples.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ jobs:
6767
crate: dylint-link
6868
version: 1
6969

70+
- name: Download and run latest `substrate-contracts-node` binary
71+
if: runner.os == 'macOS'
72+
run: |
73+
curl -L -o substrate-contracts-node.zip 'https://gitlab.parity.io/parity/mirrors/substrate-contracts-node/-/jobs/artifacts/main/download?job=build-mac' && \
74+
unzip substrate-contracts-node.zip && \
75+
chmod +x artifacts/substrate-contracts-node-mac/substrate-contracts-node &&
76+
./artifacts/substrate-contracts-node-mac/substrate-contracts-node -linfo,runtime::contracts=debug 2>&1 | tee /tmp/contracts-node.log &
77+
78+
- name: Install and run latest `substrate-contracts-node` binary
79+
if: runner.os == 'Windows'
80+
run: |
81+
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked && \
82+
substrate-contracts-node -linfo,runtime::contracts=debug 2>&1 | tee /tmp/contracts-node.log &
83+
7084
- name: Rust Cache
7185
uses: Swatinem/[email protected]
7286

0 commit comments

Comments
 (0)