Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ jobs:
run: make build test clippy fmt
- name: git diff
run: git diff --exit-code
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pnpm
run: npm install -g pnpm
- name: run ccc-tests
run: cd ccc-tests && pnpm install && make all
2 changes: 2 additions & 0 deletions ccc-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
test-vectors
15 changes: 15 additions & 0 deletions ccc-tests/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


all: test-vectors
pnpm build
pnpm start

test-vectors:
mkdir -p test-vectors
cd .. && ./target/release/native-test-vector-generator --output ./ccc-tests/test-vectors

clean:
pnpm clean
rm -rf test-vectors

.PHONY: all
22 changes: 22 additions & 0 deletions ccc-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Integration Tests with CKB CCC

This repository contains integration tests for the CKB [CCC](https://github.com/ckb-devrel/ccc) library.

## Prerequisites

- Make sure you have `pnpm` installed

## Building and Running Tests

1. Build the project at root folder:
```bash
make build
```

2. Run tests
```bash
cd ccc-tests
pnpm install
make all
```

Binary file added ccc-tests/ckb-ccc-core-1.8.0.tgz
Binary file not shown.
21 changes: 21 additions & 0 deletions ccc-tests/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "ccc-tests",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node dist/index.js",
"build": "tsc",
"clean": "rm -rf dist",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.8.1",
"dependencies": {
"@ckb-ccc/core": "file:ckb-ccc-core-1.8.0.tgz",
"ckb-testtool": "^0.1.4",
"typescript": "^5.8.3"
}
}
Loading