|
1 | 1 | name: "Test cardano-node"
|
2 | 2 | env:
|
3 |
| - TESTNET: cardano_node_latest |
4 | 3 | REGISTRY: ghcr.io/cardano-foundation
|
5 | 4 |
|
6 | 5 | DURATION: 5 # in hours
|
|
9 | 8 | workflow_dispatch:
|
10 | 9 | inputs:
|
11 | 10 | test:
|
12 |
| - description: 'Test name' |
13 |
| - required: false |
| 11 | + description: 'Test configuration to run (a directory in compose/testnets)' |
| 12 | + required: true |
14 | 13 | default: cardano_node_latest
|
15 | 14 | type: string
|
16 |
| - # FIXME: remove before mergin |
17 |
| - push: |
| 15 | + |
18 | 16 | schedule:
|
19 | 17 | # run every 6 hours
|
20 | 18 | - cron: '5 1,7,13,19 * * *'
|
@@ -49,12 +47,12 @@ jobs:
|
49 | 47 | - name: 🏗 Build images
|
50 | 48 | working-directory: compose
|
51 | 49 | run: |
|
52 |
| - make build testnet=${{ env.TESTNET }} registry=${{ env.REGISTRY }}/ |
| 50 | + make build testnet=${{ inputs.test }} registry=${{ env.REGISTRY }}/ |
53 | 51 |
|
54 | 52 | - name: 🚢 Push images
|
55 | 53 | working-directory: compose
|
56 | 54 | run: |
|
57 |
| - make push testnet=${{ env.TESTNET }} registry=${{ env.REGISTRY }}/ |
| 55 | + make push testnet=${{ inputs.test }} registry=${{ env.REGISTRY }}/ |
58 | 56 |
|
59 | 57 | # this is where we should send a request on-chain
|
60 | 58 | # for now we use the GHA provided by AT
|
|
66 | 64 | username: ${{ secrets.ANTITHESIS_USERNAME }}
|
67 | 65 | password: ${{ secrets.ANTITHESIS_PASSWORD }}
|
68 | 66 | github_token: ${{ secrets.GH_PAT }}
|
69 |
| - images: ${{ env.REGISTRY }}/${{ env.TESTNET }}:latest;${{ env.REGISTRY }}/${{ env.TESTNET }}_sidecar:latest;${{ env.REGISTRY }}/${{ env.TESTNET }}_tracer:latest;${{ env.REGISTRY }}/${{ env.TESTNET }}_tracer-sidecar:latest |
70 |
| - config_image: ${{ env.REGISTRY }}/${{ env.TESTNET }}_config:latest |
71 |
| - description: "Run ${{ env.TESTNET }}" |
| 67 | + images: ${{ env.REGISTRY }}/${{ inputs.test }}:latest;${{ env.REGISTRY }}/${{ inputs.test }}_sidecar:latest;${{ env.REGISTRY }}/${{ inputs.test }}_tracer:latest;${{ env.REGISTRY }}/${{ inputs.test }}_tracer-sidecar:latest |
| 68 | + config_image: ${{ env.REGISTRY }}/${{ inputs.test }}_config:latest |
| 69 | + description: "Run ${{ inputs.test }}" |
72 | 70 | email_recipients: ${{ env.EMAILS }}
|
73 | 71 | test_name: "${{ inputs.test }}"
|
74 | 72 | additional_parameters: |-
|
|
0 commit comments