This repository contains integration tests for the Nervos CKB blockchain using the Go SDK.
The CKB Go Integration Test project provides a comprehensive testing framework for validating the functionality of the Nervos CKB blockchain using the Go programming language. It leverages the CKB SDK for Go to interact with the CKB blockchain and perform various tests.
- Go 1.18 or higher
- Git
# Clone the repository
git clone https://github.com/cryptape/ckb-go-integration-test.git
cd ckb-go-integration-test
# Install dependencies
go mod tidy
├── ckb-sdk-go/ # Local copy of the CKB SDK for Go
├── sdk/ # Integration test files
│ ├── common.go # Common utilities for tests
│ ├── newMultiSign_test.go # Multisig transaction tests
│ ├── v106/ # Tests for CKB v1.06
│ ├── v107/ # Tests for CKB v1.07
│ └── v108/ # Tests for CKB v1.08
└── .github/workflows/ # CI/CD configuration
cd sdk/
go test ./... -short
To run the multisig transaction tests:
# Clone the required SDK repository with multisig support
git clone https://github.com/15168316096/ckb-sdk-go.git -b exec/upgrade-multisig
# Setup dependencies
cd ckb-sdk-go
go mod tidy
cd ..
go mod tidy
# Run the multisig tests
cd sdk/
go test -v ./newMultiSign_test.go
This project uses GitHub Actions for continuous integration and testing.
The standard test workflow runs on push and pull requests to the main branch. It:
- Sets up Go 1.18
- Checks out the code
- Runs the standard test suite
The multisig test workflow runs on push, pull requests to the main branch, or can be triggered manually. It:
- Sets up Go 1.18
- Checks out the code
- Clones the CKB SDK Go repository with multisig support
- Sets up dependencies
- Runs the multisig tests
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the MIT license.