Skip to content
Draft
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
1 change: 1 addition & 0 deletions .github/actions/sandbox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
devnet
37 changes: 32 additions & 5 deletions .github/actions/sandbox/action.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
name: 'Start Kadena sandbox'
description: 'Start a Kadena Devnet environment using docker-compose with indexer components'
runs:
using: 'composite'
steps:
- name: Checkout repository
uses: actions/checkout@v4 # Use the latest version
with:
repository: 'kadena-io/devnet'
path: 'devnet'
ref: 'ag/kadena-js-devnet'

- name: Start sandbox
shell: bash
run: docker compose up -d
working-directory: .github/actions/sandbox
working-directory: ./devnet
# git clone --depth=1 -b ag/kadena-js-devnet [email protected]:kadena-io/devnet.git
run: docker compose -f docker-compose.kadenajs.yaml up -d --quiet-pull

# TODO: add health check, this one's for kadena/devnet not for hackachain indexer
# - name: Check sandbox health
# shell: bash
# run: ./healthcheck.sh

- name: Check sandbox health
- name: Collect docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v2
with:
dest: './logs'

- name: Tar logs
if: failure()
shell: bash
run: ./healthcheck.sh
working-directory: .github/actions/sandbox
run: tar cvzf ./logs.tgz ./logs

- name: Upload logs to GitHub
if: failure()
uses: actions/upload-artifact@master
with:
name: docker_logs.tgz
path: ./logs.tgz
20 changes: 0 additions & 20 deletions .github/actions/sandbox/docker-compose.yaml

This file was deleted.

Empty file modified .github/actions/sandbox/healthcheck.sh
100755 → 100644
Empty file.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
fetch-depth: 2
show-progress: false

# moved this to the top for testing
- name: Setup Kadena sandbox
uses: ./.github/actions/sandbox
# remove to above when done testing

- name: Runner setup
uses: ./.github/actions/runner-setup

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.github/actions
!.changeset
pnpm-lock.yaml
devnet
Loading