-
Notifications
You must be signed in to change notification settings - Fork 67
74 lines (64 loc) · 2.33 KB
/
test-ethereum-node.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
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
name: charts/ethereum-node
on:
pull_request:
paths:
- charts/ethereum-node/**
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref }}-${{ matrix.network }}-${{ matrix.consensus }}-${{ matrix.execution }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
consensus: [teku, prysm, lighthouse, nimbus, lodestar, grandine]
execution: [geth, nethermind, erigon, besu, ethereumjs, reth]
network: [sepolia, mainnet]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch default branch
run: git fetch origin ${{ github.event.repository.default_branch }}:${{ github.event.repository.default_branch }}
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.16.2
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.1
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
with:
version: "v3.11.0"
- name: Check if chart got changed
id: list-changed
run: |
if ct list-changed --config ct.yaml --target-branch ${{ github.event.repository.default_branch }} | grep -q 'charts/ethereum-node'; then
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
run: >
ct lint
--config ct.yaml
--target-branch ${{ github.event.repository.default_branch }}
--charts charts/ethereum-node
- name: Create kind cluster
uses: helm/kind-action@v1.10.0
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: >
ct install
--config ct.yaml
--target-branch ${{ github.event.repository.default_branch }}
--charts charts/ethereum-node
--helm-extra-set-args="
--values=charts/ethereum-node/ci/networks/${{ matrix.network }}.yaml
--values=charts/ethereum-node/ci/clients/execution/${{ matrix.execution }}.yaml
--values=charts/ethereum-node/ci/clients/consensus/${{ matrix.consensus }}.yaml
"