The Refactor #759
Workflow file for this run
This file contains hidden or 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: Cello CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Start Dashboard, DB, and API Engine | |
| run: docker compose -f docker-compose.dev.yaml up -d --build | |
| - name: Start Hyperledger Fabric Agent | |
| working-directory: src/agents/hyperledger-fabric | |
| run: | | |
| docker build -t cello-hyperledger-fabric-agent . | |
| docker run -d --name cello-hyperledger-fabric-agent cello-hyperledger-fabric-agent | |
| - name: Build Hyperledger Fabric Node | |
| working-directory: src/nodes/hyperledger-fabric | |
| run: docker build -t hyperledger/fabric:2.5.14 . | |
| - name: Stop Hyperledger Fabric Agent | |
| run: docker stop cello-hyperledger-fabric-agent | |
| - name: Stop Dashboard, DB, and API Engine | |
| run: docker compose -f docker-compose.dev.yaml down -v | |
| - name: Clean up | |
| if: always() | |
| run: docker system prune -a -f |