-
Notifications
You must be signed in to change notification settings - Fork 55
70 lines (63 loc) · 2.05 KB
/
e2e.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
name: E2E
on:
pull_request:
permissions:
contents: write
jobs:
e2e-test:
runs-on: ubuntu-latest
strategy:
matrix:
test-suite: [TestEthereumE2ESuite, TestFabricE2ESuite]
blockchain-provider: [geth, fabric, besu]
token-provider: [none, erc1155, erc20_erc721]
database-type: [sqlite3, postgres]
exclude:
- blockchain-provider: geth
test-suite: TestFabricE2ESuite
- blockchain-provider: besu
test-suite: TestFabricE2ESuite
- blockchain-provider: fabric
test-suite: TestEthereumE2ESuite
- blockchain-provider: fabric
token-provider: erc1155
- blockchain-provider: fabric
token-provider: erc20_erc721
- blockchain-provider: geth
token-provider: none
- blockchain-provider: besu
token-provider: none
fail-fast: false
steps:
- name: Checkout FireFly CLI
uses: actions/checkout@v4
with:
path: firefly-cli
fetch-depth: 0
- name: Checkout FireFly Core repo
uses: actions/checkout@v4
with:
repository: hyperledger/firefly
path: firefly
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Compile FireFly CLI
working-directory: firefly-cli
run: make install
- name: Run E2E tests
working-directory: firefly
env:
TEST_SUITE: ${{ matrix.test-suite }}
BLOCKCHAIN_PROVIDER: ${{ matrix.blockchain-provider }}
TOKENS_PROVIDER: ${{ matrix.token-provider }}
DATABASE_TYPE: ${{ matrix.database-type }}
DOWNLOAD_CLI: false
run: ./test/e2e/run.sh
- name: Archive container logs
uses: actions/upload-artifact@v4
if: always()
with:
name: container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-provider }}-${{ matrix.database-type }}-${{ matrix.token-provider }}
path: containerlogs/logs.txt