-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (58 loc) · 1.67 KB
/
Copy pathe2e-mainnet.yaml
File metadata and controls
67 lines (58 loc) · 1.67 KB
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
name: e2e-mainnet
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches:
- '**'
paths:
- 'neutrino_server/**'
- '.github/workflows/e2e-mainnet.yaml'
pull_request:
paths:
- 'neutrino_server/**'
- '.github/workflows/e2e-mainnet.yaml'
workflow_dispatch:
inputs:
min_block_height:
description: 'Minimum block height to sync before running tests'
required: false
default: '100000'
sync_timeout:
description: 'Maximum sync timeout (e.g., 15m, 30m, 1h)'
required: false
default: '15m'
# Only run one e2e test at a time
concurrency:
group: e2e-mainnet
cancel-in-progress: false
jobs:
e2e-mainnet:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6.0.2
- name: Set up Go
uses: actions/setup-go@v6.4.0
with:
go-version: '1.25'
cache-dependency-path: neutrino_server/go.sum
- name: Install dependencies
working-directory: neutrino_server
run: go mod download
- name: Run mainnet e2e tests
working-directory: neutrino_server
run: |
go test -tags=e2e -v -timeout 30m ./e2e/...
env:
# These can be used by the test if we add env var support
MIN_BLOCK_HEIGHT: ${{ github.event.inputs.min_block_height || '100000' }}
SYNC_TIMEOUT: ${{ github.event.inputs.sync_timeout || '15m' }}
- name: Upload test logs on failure
if: failure()
uses: actions/upload-artifact@v7.0.1
with:
name: e2e-logs
path: |
neutrino_server/e2e/*.log
retention-days: 7