|
| 1 | +name: "Test cardano-node" |
| 2 | +env: |
| 3 | + TESTNET: cardano_node_latest |
| 4 | + REGISTRY: us-central1-docker.pkg.dev/molten-verve-216720/cardano-repository/ |
| 5 | + |
| 6 | + DURATION: 5 # in hours |
| 7 | + |
| 8 | +on: |
| 9 | + # can be dispatched manually |
| 10 | + workflow_dispatch: |
| 11 | + inputs: |
| 12 | + test: |
| 13 | + description: 'Test name' |
| 14 | + required: false |
| 15 | + default: '${{TESTNET}}' |
| 16 | + type: string |
| 17 | + schedule: |
| 18 | + # run every 6 hours |
| 19 | + - cron: '5 1,7,13,19 * * *' |
| 20 | + |
| 21 | +jobs: |
| 22 | + run-cardano-node: |
| 23 | + runs-on: ubuntu-latest |
| 24 | + |
| 25 | + steps: |
| 26 | + - name: 🚧 Set up Docker Buildx |
| 27 | + uses: docker/setup-buildx-action@v3 |
| 28 | + |
| 29 | + - name: 📥 Checkout repository |
| 30 | + uses: actions/checkout@v4 |
| 31 | + with: |
| 32 | + ref: ${{ github.event.inputs.ref_name || '' }} |
| 33 | + |
| 34 | + - name: 🏗 Build images |
| 35 | + working-directory: compose |
| 36 | + run: | |
| 37 | + make build testnet=${{TESTNET}} registry=${{REGISTRY}} |
| 38 | +
|
| 39 | + - name: 🚢 Push images |
| 40 | + working-directory: compose |
| 41 | + run: | |
| 42 | + make push testnet=${{TESTNET}} registry=${{REGISTRY}} |
| 43 | +
|
| 44 | + # this is where we should send a request on-chain |
| 45 | + # for now we use the GHA provided by AT |
| 46 | + - name: 🏃 Trigger Antithesis |
| 47 | + uses: antithesishq/[email protected] |
| 48 | + with: |
| 49 | + notebook_name: cardano |
| 50 | + tenant: cardano |
| 51 | + username: ${{ secrets.ANTITHESIS_USERNAME }} |
| 52 | + password: ${{ secrets.ANTITHESIS_PASSWORD }} |
| 53 | + github_token: ${{ secrets.GH_PAT }} |
| 54 | + images: ${{TESTNET}}:latest;${{TESTNET}}_sidecar:latest;${{TESTNET}}_tracer:latest;${{TESTNET}}_tracer-sidecar:latest |
| 55 | + config_image: ${{TESTNET}}_config:latest |
| 56 | + description: "Run ${{TESTNET}}" |
| 57 | + email_recipients: ${{EMAILS}} |
| 58 | + test_name: "${{ inputs.test }}" |
| 59 | + additional_parameters: |- |
| 60 | + duration=${{DURATION}} |
0 commit comments