-
Notifications
You must be signed in to change notification settings - Fork 208
118 lines (105 loc) · 3.52 KB
/
integration.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
name: Latest Integration Test
on:
push:
branches: [scheduled-e2e]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
e2e-test:
runs-on: firefly-ubuntu-latest
strategy:
matrix:
test-suite:
[
TestEthereumMultipartyE2ESuite,
TestEthereumGatewayE2ESuite,
TestEthereumMultipartyTokensRemoteNameE2ESuite,
TestFabricGatewayE2ESuite,
TestFabricMultipartyE2ESuite,
TestFabricMultipartyCustomPinE2ESuite,
]
stack-type: [ethereum, fabric]
blockchain-node: [geth, besu, fabric]
database-type: [sqlite3, postgres]
exclude:
- test-suite: TestEthereumGatewayE2ESuite
stack-type: fabric
- test-suite: TestEthereumMultipartyE2ESuite
stack-type: fabric
- test-suite: TestEthereumMultipartyTokensRemoteNameE2ESuite
stack-type: fabric
- test-suite: TestEthereumMultipartyTokensRemoteNameE2ESuite
stack-type: fabric
- test-suite: TestFabricGatewayE2ESuite
stack-type: ethereum
- test-suite: TestFabricMultipartyE2ESuite
stack-type: ethereum
- test-suite: TestFabricMultipartyCustomPinE2ESuite
stack-type: ethereum
- stack-type: ethereum
blockchain-node: fabric
- stack-type: fabric
blockchain-node: geth
- stack-type: fabric
blockchain-node: besu
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Update manifest to latest commit for every service
run: ./manifestgen.sh head
- name: Pull latest FireFly build
run: |
docker pull ghcr.io/hyperledger/firefly:head
docker tag ghcr.io/hyperledger/firefly:head hyperledger/firefly
- name: Run E2E tests
env:
TEST_SUITE: ${{ matrix.test-suite }}
STACK_TYPE: ${{ matrix.stack-type }}
DATABASE_TYPE: ${{ matrix.database-type }}
BLOCKCHAIN_NODE: ${{ matrix.blockchain-node }}
BUILD_FIREFLY: false
RESTART: true
run: ./test/e2e/run.sh
- name: Archive container logs
uses: actions/upload-artifact@v3
if: always()
with:
name: container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-node }}-${{ matrix.database-type }}
path: containerlogs/logs.txt
migration-test:
runs-on: firefly-ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Update manifest to latest commit for every service
run: ./manifestgen.sh head
- name: Pull latest FireFly build
run: |
docker pull ghcr.io/hyperledger/firefly:head
docker tag ghcr.io/hyperledger/firefly:head hyperledger/firefly
- name: Run E2E tests
env:
TEST_SUITE: TestEthereumV1MigrationE2ESuite
STACK_TYPE: ethereum
DATABASE_TYPE: postgres
BUILD_FIREFLY: false
RESTART: false
run: ./test/e2e/run.sh
- name: Archive container logs
uses: actions/upload-artifact@v3
if: always()
with:
name: container-logs-TestEthereumV1MigrationE2ESuite-geth-postgres
path: containerlogs/logs.txt