Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,40 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.24.3"

- name: Build DAppNode Package
run: |
npx @dappnode/dappnodesdk build --provider=remote --variant=hoodi

- name: Extract IPFS Hash
id: extract_ipfs
run: |
# Use jq to get the hash from the generated releases.json.
ipfs_hash=$(jq -r '.[].hash' package_variants/hoodi/releases.json)
echo "IPFS hash: $ipfs_hash"
# Save the hash as an environment variable for later steps.
echo "IPFS_HASH=$ipfs_hash" >> $GITHUB_ENV

- name: Check DAppManager Ping
id: ping_dappmanager
run: |
# Ping the DAppManager endpoint and check for HTTP 200
code=$(curl -s -o /dev/null -w "%{http_code}" http://172.33.1.7:7000/ping)
if [ "$code" -ne 200 ]; then
echo "dappmanager is not running with env TEST=true and therefore the test api is not running"
exit 1
fi

- name: Run staker client test sdk
run: |
cd /home/pablo/staker-test-util
LOG_LEVEL=DEBUG go run cmd/main.go --ipfs-gateway-url=https://gateway-dev.ipfs.dappnode.io --tropidatooor-url=http://localhost:3000 --ipfs-hash=${{ env.IPFS_HASH }}
3 changes: 0 additions & 3 deletions dappnode_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@
},
"bugs": {
"url": "https://github.com/dappnode/DAppNodePackage-geth-generic/issues"
},
"requirements": {
"minimumDappnodeVersion": "0.2.106"
}
}
Loading