Skip to content

Commit 9ec5007

Browse files
committed
Use input value to select which test to run
1 parent f793af4 commit 9ec5007

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/cardano-node.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: "Test cardano-node"
22
env:
3-
TESTNET: cardano_node_latest
43
REGISTRY: ghcr.io/cardano-foundation
54
65
DURATION: 5 # in hours
@@ -9,12 +8,11 @@ on:
98
workflow_dispatch:
109
inputs:
1110
test:
12-
description: 'Test name'
13-
required: false
11+
description: 'Test configuration to run (a directory in compose/testnets)'
12+
required: true
1413
default: cardano_node_latest
1514
type: string
16-
# FIXME: remove before mergin
17-
push:
15+
1816
schedule:
1917
# run every 6 hours
2018
- cron: '5 1,7,13,19 * * *'
@@ -49,12 +47,12 @@ jobs:
4947
- name: 🏗 Build images
5048
working-directory: compose
5149
run: |
52-
make build testnet=${{ env.TESTNET }} registry=${{ env.REGISTRY }}/
50+
make build testnet=${{ inputs.test }} registry=${{ env.REGISTRY }}/
5351
5452
- name: 🚢 Push images
5553
working-directory: compose
5654
run: |
57-
make push testnet=${{ env.TESTNET }} registry=${{ env.REGISTRY }}/
55+
make push testnet=${{ inputs.test }} registry=${{ env.REGISTRY }}/
5856
5957
# this is where we should send a request on-chain
6058
# for now we use the GHA provided by AT
@@ -66,9 +64,9 @@ jobs:
6664
username: ${{ secrets.ANTITHESIS_USERNAME }}
6765
password: ${{ secrets.ANTITHESIS_PASSWORD }}
6866
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 }}"
7270
email_recipients: ${{ env.EMAILS }}
7371
test_name: "${{ inputs.test }}"
7472
additional_parameters: |-

0 commit comments

Comments
 (0)