generated from dappnode/DAppNodePackage-Lodestar-Prater
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.3 KB
/
main.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
name: "Main"
on:
repository_dispatch:
pull_request:
push:
branches:
- "master"
- "main"
- "v[0-9]+.[0-9]+.[0-9]+"
paths-ignore:
- "README.md"
jobs:
build-test:
runs-on: ubuntu-latest
name: Build test
if: github.event_name != 'push'
steps:
- uses: actions/checkout@v3
- run: npx @dappnode/dappnodesdk build --skip_save
e2e-test:
runs-on: holesky
needs: build-test
if: github.event_name != 'push'
name: End to end tests
steps:
- uses: actions/checkout@v3
- run: npx @dappnode/dappnodesdk@latest github-action test-end-to-end --errorLogsTimeout 120 --healthCheckUrl http://beacon-chain.lodestar-holesky.dappnode:3500/eth/v1/beacon/genesis --network holesky --environmentByService="{\"beacon-chain\":{\"CHECKPOINT_SYNC_URL\":\"https://checkpoint-sync-holesky.dappnode.io\"}}"
env:
VALIDATOR_INDEX: ${{ secrets.HOLESKY_VALIDATOR_INDEX }}
release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v3
- name: Publish
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"