Skip to content

Commit df78bb4

Browse files
[explorer] Add CI (#17)
* add to README * add react tests * remove WASM mock
1 parent 0da2b49 commit df78bb4

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
env:
99
CARGO_TERM_COLOR: always
1010
UDEPS_VERSION: 0.1.50
11+
NODE_VERSION: 20
1112

1213
jobs:
1314
All:
@@ -59,6 +60,22 @@ jobs:
5960
- name: Check for unused dependencies
6061
run: cargo +nightly udeps --all-targets
6162

63+
React:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- name: Checkout repository
67+
uses: actions/checkout@v4
68+
- name: Setup Node.js
69+
uses: actions/setup-node@v4
70+
with:
71+
node-version: ${{ env.NODE_VERSION }}
72+
cache: 'npm'
73+
cache-dependency-path: explorer/package-lock.json
74+
- name: Install dependencies
75+
run: cd explorer && npm ci
76+
- name: Test compilation
77+
run: cd explorer && CI=true npm run build
78+
6279
WASM:
6380
runs-on: ubuntu-latest
6481
steps:
@@ -78,4 +95,4 @@ jobs:
7895
- name: Install wasm-pack
7996
run: cargo install wasm-pack
8097
- name: Pack types
81-
run: wasm-pack build types --release --target web
98+
run: wasm-pack build types --release --target web

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
* [chain](./chain/README.md): A minimal blockchain built with the [Commonware Library](https://github.com/commonwarexyz/monorepo).
1010
* [client](./client/README.md): Client for interacting with `alto`.
11-
* [inspector](./inspector/README.md): Monitor `alto` activity.
11+
* [explorer](./explorer/README.md): Visualize `alto` activity.
12+
* [inspector](./inspector/README.md): Inspect `alto` activity.
1213
* [types](./types/README.md): Common types used throughout `alto`.
1314

1415
## Licensing

inspector/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.0.3"
44
publish = true
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
7-
description = "Monitor alto activity."
7+
description = "Inspect alto activity."
88
readme = "README.md"
99
homepage = "https://alto.commonware.xyz"
1010
repository = "https://github.com/commonwarexyz/alto/tree/main/inspector"

inspector/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Crates.io](https://img.shields.io/crates/v/alto-inspector.svg)](https://crates.io/crates/alto-inspector)
44
[![Docs.rs](https://docs.rs/alto-inspector/badge.svg)](https://docs.rs/alto-inspector)
55

6-
Monitor `alto` activity.
6+
Inspect `alto` activity.
77

88
## Status
99

inspector/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod utils;
1717
#[tokio::main]
1818
async fn main() {
1919
let matches = Command::new("inspector")
20-
.about("Monitor alto activity.")
20+
.about("Inspect alto activity.")
2121
.arg(
2222
Arg::new("verbose")
2323
.short('v')

0 commit comments

Comments
 (0)