Skip to content

Commit 66e96d4

Browse files
authored
Merge pull request #83 from dappnode/ci/tropibot-dispatch-metadata
ci: add tropibot repository_dispatch + metadata to sync-test, add attestation-test [skip ci]
2 parents bcb7482 + 2bf5323 commit 66e96d4

2 files changed

Lines changed: 43 additions & 1 deletion

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Proof of Attestation
2+
3+
on:
4+
repository_dispatch:
5+
types: [tropibot-attestation-test]
6+
workflow_dispatch:
7+
inputs:
8+
consensus_client:
9+
description: "Consensus Client"
10+
required: true
11+
type: choice
12+
options: [lodestar, teku, prysm, nimbus, lighthouse]
13+
ipfs_hash:
14+
description: "Optional pre-built IPFS hash to test against"
15+
required: false
16+
type: string
17+
default: ""
18+
19+
jobs:
20+
attestation-test:
21+
uses: dappnode/workflows/.github/workflows/staking-attestation-test.yml@master
22+
with:
23+
execution_client: "nethermind"
24+
consensus_client: ${{ github.event.client_payload.consensus_client || inputs.consensus_client || '' }}
25+
pr_number: ${{ github.event.client_payload.pr_number || github.event.pull_request.number || '' }}
26+
head_ref: ${{ github.event.client_payload.head_ref || github.event.pull_request.head.ref || github.ref_name }}
27+
head_sha: ${{ github.event.client_payload.head_sha || github.sha }}
28+
sender: ${{ github.event.client_payload.sender || github.event.pull_request.user.login || github.actor }}
29+
ipfs_hash: ${{ github.event.client_payload.ipfs_hash || inputs.ipfs_hash || '' }}
30+
secrets: inherit

‎.github/workflows/sync-test.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
name: Execution Client Sync Test
22

33
on:
4+
repository_dispatch:
5+
types: [tropibot-sync-test]
46
workflow_dispatch:
57
inputs:
68
consensus_client:
79
description: "Consensus Client"
810
required: true
911
type: choice
1012
options: [lodestar, teku, prysm, nimbus, lighthouse]
13+
ipfs_hash:
14+
description: "Optional pre-built IPFS hash to test against"
15+
required: false
16+
type: string
17+
default: ""
1118
pull_request:
1219
branches:
1320
- "main"
@@ -19,5 +26,10 @@ jobs:
1926
uses: dappnode/workflows/.github/workflows/staking-sync-test.yml@master
2027
with:
2128
execution_client: "nethermind"
22-
consensus_client: ${{ inputs.consensus_client || '' }}
29+
consensus_client: ${{ github.event.client_payload.consensus_client || inputs.consensus_client || '' }}
30+
pr_number: ${{ github.event.client_payload.pr_number || github.event.pull_request.number || '' }}
31+
head_ref: ${{ github.event.client_payload.head_ref || github.event.pull_request.head.ref || github.ref_name }}
32+
head_sha: ${{ github.event.client_payload.head_sha || github.event.pull_request.head.sha || github.sha }}
33+
sender: ${{ github.event.client_payload.sender || github.event.pull_request.user.login || github.actor }}
34+
ipfs_hash: ${{ github.event.client_payload.ipfs_hash || inputs.ipfs_hash || '' }}
2335
secrets: inherit

0 commit comments

Comments
 (0)