-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.93 KB
/
main.yml
File metadata and controls
52 lines (49 loc) · 1.93 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
name: "Main"
on:
workflow_dispatch:
inputs:
consensus_client:
description: 'Consensus Client'
required: true
type: choice
options:
- lodestar
- teku
- prysm
- nimbus
- lighthouse
repository_dispatch:
pull_request:
push:
branches:
- "main"
paths-ignore:
- "README.md"
jobs:
build-test:
runs-on: staking-test-hoodi
name: Build and test
if: "!contains(github.ref, 'no-test')"
steps:
- uses: actions/checkout@v6
- name: Build and upload
run: npx @dappnode/dappnodesdk build --provider=http://$(docker inspect DAppNodeCore-ipfs.dnp.dappnode.eth --format '{{.NetworkSettings.Networks.dncore_network.IPAddress}}'):5001 --variant=hoodi
- name: Run staker test runner
run: |
docker run --rm --pull=always \
--network dncore_network -e CONSENSUS_CLIENT=${{ github.event.inputs.consensus_client }} \
-v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes -v $PWD/package_variants:/app/package_variants \
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \
ghcr.io/dappnode/staker-test-util/test-runner:latest
release:
name: Release
runs-on: ubuntu-latest
needs: [build-test]
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch'
steps:
- uses: actions/checkout@v6
- name: Publish
run: npx @dappnode/dappnodesdk publish patch --dappnode_team_preset --timeout 2h --all-variants
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1"