Skip to content

Commit

Permalink
Update CI workflow to test everything
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Apr 5, 2024
1 parent 216db02 commit d757475
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ jobs:
with:
name: holochain-ci

- name: Install and test
- name: Install NPM dependencies
run: |
nix develop --command bash -c "npm i && npm t"
nix develop --command npm i
- name: Run Rust tests
run: |
nix develop --command cargo test
- name: Run Tryorama tests
run: |
nix develop --command npm test
- name: Run CLI tests
run: |
nix develop --command npm run test:cli
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"package": "npm run build:happ && npm run package -w ui && hc web-app pack workdir --recursive",
"build:happ": "npm run build:zomes && hc app pack workdir --recursive",
"build:zomes": "RUSTFLAGS='' CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown",
"test:cli": "npm run build:happ && cargo test --manifest-path ./checked_cli/Cargo.toml",
"lint": "npm run -w ui lint && npm run -w tests lint && cargo clippy && cargo clippy --manifest-path ./checked_cli/Cargo.toml",
"format": "npm run -w ui format && npm run -w tests format && cargo fmt && cargo fmt --manifest-path ./checked_cli/Cargo.toml"
},
Expand Down

0 comments on commit d757475

Please sign in to comment.