-
Notifications
You must be signed in to change notification settings - Fork 534
49 lines (44 loc) · 1.09 KB
/
e2e.yaml
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
---
name: IBFT E2E tests
on: # yamllint disable-line rule:truthy
push:
branches:
- main
- develop
workflow_dispatch:
workflow_call:
outputs:
workflow_output:
description: "E2E IBFT output"
value: ${{ jobs.build.outputs.e2eibft_output_failure }}
jobs:
build:
runs-on: ubuntu-latest
env:
E2E_TESTS: true
E2E_LOGS: true
CI_VERBOSE: true
outputs:
e2eibft_output_failure: ${{ steps.run_e2eibft_failure.outputs.test_output }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Run tests
run: make test-e2e
- name: Run tests failed
if: failure()
id: run_e2eibft_failure
run: echo "test_output=false" >> $GITHUB_OUTPUT
- name: Archive test logs
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e-logs
path: e2e-logs-*/
retention-days: 30