-
Notifications
You must be signed in to change notification settings - Fork 275
75 lines (71 loc) · 2.31 KB
/
Copy pathtest-ethd.yml
File metadata and controls
75 lines (71 loc) · 2.31 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
68
69
70
71
72
73
74
75
name: Test ethd
defaults:
run:
shell: bash
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, labeled, unlabeled]
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-ethd:
if: |
contains(github.event.pull_request.labels.*.name, 'test-ethd') ||
contains(github.event.pull_request.labels.*.name, 'test-all') ||
github.event_name == 'push'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-15-intel]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Docker buildx
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
uses: docker/setup-buildx-action@v4
- name: Set up Docker on macOS
if: ${{ startsWith(matrix.os, 'macos-') }}
uses: douglascamata/setup-docker-macos-action@d5ccc6aae0ce23e7700154f5e63cc53e6433ac48
- name: Prerequisites on Ubuntu
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: sudo apt-get install -y expect whiptail
- name: Prerequisites on macOS
if: ${{ startsWith(matrix.os, 'macos-') }}
run: brew install bash newt coreutils expect gawk
- name: Use default.env
run: cp default.env .env
- name: Set old .env version
run: |
source ./.github/helper.sh
ENV_VERSION=42
var=ENV_VERSION
set_value_in_env
COMPOSE_FILE=teku.yml:besu.yml
var=COMPOSE_FILE
set_value_in_env
- name: Test ethd update
run: ./ethd update --debug --non-interactive
- name: Remove .env
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: rm .env
- name: Test ethd config defaults
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: expect -d ./.github/test-ethd-config.exp all-defaults
env:
TERM: xterm
- name: Test ethd config no mev
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: expect -d ./.github/test-ethd-config.exp no-mev
env:
TERM: xterm
- name: Test ethd config no grafana
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: expect -d ./.github/test-ethd-config.exp no-grafana
env:
TERM: xterm