Fix ccapi module name to be available as package #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [ master, main, develop ] | |
pull_request: | |
branches: [ master, main, develop ] | |
jobs: | |
build: | |
defaults: | |
run: | |
shell: bash | |
working-directory: chaincode | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Build | |
run: go build -v github.com/hyperledger-labs/cc-tools-demo/chaincode | |
- name: Unit tests | |
run: go test github.com/hyperledger-labs/cc-tools-demo/chaincode -coverpkg=./... -v | |
- name: Integration tests | |
run: go test -v ./tests |