Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.34 KB

README.md

File metadata and controls

41 lines (34 loc) · 1.34 KB

Corda 5 CLI Action

Adds Corda 5 CLI to your GitHub actions. Works well with corda5-testutils.

Example workflow fragment bellow:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up JDK
        uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: '17'
      - name: Setup Corda CLI
        uses: manosbatsis/[email protected]
        with:
          cli-version: '5.0.1' # or 5.1.0
          # Or use custom location, e.g. 
          # cli-installer-zip-url: 'https://github.com/corda/corda-runtime-os/releases/download/release-5.0.1.0/corda-cli-installer-5.0.1.0.zip'
      - name: Build with Gradle
        uses: gradle/gradle-build-action@v2
        with:
          arguments: build test

Examples

You can find a complete example built on top of CSDE at the CSDE-cordapp-integration-testing repo. There is also a relevant Medium article here.

Feedback

Issues, PRs etc. welcome. You can also try pinging me on https://cordaledger.slack.com