-
Notifications
You must be signed in to change notification settings - Fork 50
122 lines (120 loc) · 4.33 KB
/
e2e-test-bridge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Bridge e2e test
on:
workflow_run:
workflows: [CI]
branches: [master]
types: [completed]
workflow_dispatch:
inputs:
run_id:
description: "Run id from which artifacts are taken"
required: true
jobs:
e2e-bridge-test:
runs-on: self-hosted
steps:
- name: Retrieve run id
id: retrieve-run-id
run: |
if [[ -n "${{ github.event_name == 'workflow_dispatch' }}" ]]; then
echo "run_id=${{ github.event.inputs.run_id }}" >> $GITHUB_OUTPUT
else
echo "run_id=${{ github.event.workflow_run.id }}" >> $GITHUB_OUTPUT
fi
- name: Recognize sha ref
id: sharef
run: |
if [ ${{ github.event_name }} == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ ${{ github.event_name }} == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ needs.set-tags.outputs.git_ref }}
- name: Check g++
id: setup_g_plusplus
run: |
g++ --version
- name: Check protoc
id: check_proto_c
run: |
protoc --version
- name: Check jq
id: check_jq
run: |
jq --version
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.0'
- name: Check go
id: check_go
run: |
go version
- name: Run Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Check mage
id: check_mage
run: |
mage --version
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Check forge
id: check_forge
run: |
forge --version
- name: Pnpm
uses: pnpm/[email protected]
with:
version: 9
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install yarn
run: |-
curl -fsSL --create-dirs -o $HOME/bin/yarn \
https://github.com/yarnpkg/yarn/releases/download/v1.22.22/yarn-1.22.22.js
chmod +x $HOME/bin/yarn
echo "$HOME/bin" >> $GITHUB_PATH
- name: Check yarn
id: check_yarn
run: |
yarn --version
- name: Check date
id: check_date
run: |
date --version
- name: Download build artifact from triggered workflow
uses: dawidd6/action-download-artifact@v2
with:
run_id: ${{ steps.retrieve-run-id.outputs.run_id }}
name: binaries
path: binaries
search_artifacts: true
- name: "Make binaries executable"
shell: bash
run: |
chmod uog+x target/release/tanssi-node
chmod uog+x target/release/tanssi-relay
chmod uog+x target/release/tanssi-relay-prepare-worker
chmod uog+x target/release/tanssi-relay-execute-worker
chmod uog+x target/release/container-chain-simple-node
chmod uog+x target/release/container-chain-frontier-node
- name: Run Zombienet Test zombie_tanssi_relay_eth_bridge
uses: ./.github/workflow-templates/zombienet-tests
with:
test_name: zombie_tanssi_relay_eth_bridge
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}