Skip to content

Commit

Permalink
feat: Update locanet & utils
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Apr 24, 2023
1 parent 1e2453f commit 87add6a
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 806 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,40 +47,11 @@ jobs:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Download binary artifact
run: |
mkdir -p ${{ env.RUNNER_BIN_DIR }}
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(curl -s "https://api.github.com/repos/cheqd/cheqd-node/tags" | jq -r '.[0].name')")"
wget -c "https://github.com/cheqd/cheqd-node/releases/download/v${CHEQD_NODE_VERSION}/cheqd-noded-${CHEQD_NODE_VERSION}-linux-amd64.tar.gz"
tar -xvf "cheqd-noded-${CHEQD_NODE_VERSION}-linux-amd64.tar.gz" -C ${{ env.RUNNER_BIN_DIR }}
sudo chmod +x ${{ env.RUNNER_BIN_DIR }}/cheqd-noded
- name: Restore binary permissions
run: sudo chmod +x ${{ env.RUNNER_BIN_DIR }}/cheqd-noded

- name: Generate localnet configs
working-directory: ./docker/localnet
run: |
bash gen-network-config.sh
sudo chown -R 1000:1000 network-config
- name: Set up Docker localnet
working-directory: ./docker/localnet
run: |
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(curl -s "https://api.github.com/repos/cheqd/cheqd-node/tags" | jq -r '.[0].name')")"
BUILD_IMAGE="ghcr.io/cheqd/cheqd-node:$CHEQD_NODE_VERSION"
export BUILD_IMAGE
docker compose up --detach
- name: Import keys
working-directory: ./docker/localnet
run: |
bash import-keys.sh
- name: Start cheqd localnet
run: docker run --rm -d -p 26657:26657 ghcr.io/cheqd/cheqd-testnet:latest

- name: "Clean install dependencies"
run: npm ci

- name: Run Tests
run: |
sleep 1m
npm test
run: npm test
55 changes: 0 additions & 55 deletions docker/Dockerfile

This file was deleted.

58 changes: 0 additions & 58 deletions docker/entrypoint.sh

This file was deleted.

7 changes: 0 additions & 7 deletions docker/localnet/build-latest.env

This file was deleted.

13 changes: 0 additions & 13 deletions docker/localnet/container-env/observer-0.env

This file was deleted.

17 changes: 0 additions & 17 deletions docker/localnet/container-env/seed-0.env

This file was deleted.

13 changes: 0 additions & 13 deletions docker/localnet/container-env/validator-0.env

This file was deleted.

13 changes: 0 additions & 13 deletions docker/localnet/container-env/validator-1.env

This file was deleted.

13 changes: 0 additions & 13 deletions docker/localnet/container-env/validator-2.env

This file was deleted.

13 changes: 0 additions & 13 deletions docker/localnet/container-env/validator-3.env

This file was deleted.

Loading

0 comments on commit 87add6a

Please sign in to comment.