Skip to content

Commit

Permalink
Merge branch 'develop' into util-cosmos-wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Mar 24, 2023
2 parents d3e2d96 + e5f393e commit 2ddf7ee
Show file tree
Hide file tree
Showing 6 changed files with 500 additions and 454 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ on:
defaults:
run:
shell: bash
env:
RUNNER_BIN_DIR: /home/runner/.local/bin
permissions:
contents: write
packages: read
checks: write


jobs:

build:
name: "Build Node.js"
runs-on: ubuntu-latest
Expand All @@ -24,3 +32,53 @@ jobs:

- name: "Run npm build"
run: npm run build

integration-tests:
name: "Integration Tests"
runs-on: ubuntu-20.04
needs: build

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Download binary artifact
run: |
mkdir -p ${{ env.RUNNER_BIN_DIR }}
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< "$(curl --silent https://api.github.com/repos/cheqd/cheqd-node/releases)")")"
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- <<< "$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< "$(curl --silent https://api.github.com/repos/cheqd/cheqd-node/releases)")")"
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: "Clean install dependencies"
run: npm ci

- name: Run Tests
run: npm test
8 changes: 2 additions & 6 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,17 @@ jobs:
call-lint:
name: "Lint"
uses: ./.github/workflows/lint.yml
secrets: inherit

call-build:
name: "Build & Test"
needs: call-lint
uses: ./.github/workflows/build.yml

call-test:
name: "Tests"
needs: call-build
uses: ./.github/workflows/test.yml
secrets: inherit

call-release:
name: "Release"
needs: call-test
needs: call-build
if: ${{ github.ref_protected == true }}
uses: ./.github/workflows/release.yml
secrets: inherit
66 changes: 0 additions & 66 deletions .github/workflows/test.yml

This file was deleted.

27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
# Changelog

## [3.0.2](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2) (2023-02-20)
## [3.2.0](https://github.com/cheqd/sdk/compare/3.1.1...3.2.0) (2023-03-09)

### Features

* Update @cheqd/ts-proto from 3.1.2 to 3.1.3 ([#151](https://github.com/cheqd/sdk/issues/151)) ([f6ac275](https://github.com/cheqd/sdk/commit/f6ac2759255ed612a99aff35d497468ff4530e11))

## [3.2.0-develop.1](https://github.com/cheqd/sdk/compare/3.1.2-develop.1...3.2.0-develop.1) (2023-03-09)

## [3.1.2-develop.1](https://github.com/cheqd/sdk/compare/3.1.1...3.1.2-develop.1) (2023-03-09)

## [3.1.1](https://github.com/cheqd/sdk/compare/3.1.0...3.1.1) (2023-02-28)

## [3.1.0](https://github.com/cheqd/sdk/compare/3.0.1...3.1.0) (2023-02-28)]

## [3.1.0-develop.1](https://github.com/cheqd/sdk/compare/3.0.2-develop.3...3.1.0-develop.1) (2023-02-28)


### Features

* Updated ts-proto package ([72e5bcf](https://github.com/cheqd/sdk/commit/72e5bcf970aa1c57aefee5a413d3922f1739fee7))

## [3.0.2](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2) (2023-02-28)

## [3.0.2-develop.3](https://github.com/cheqd/sdk/compare/3.0.2-develop.2...3.0.2-develop.3) (2023-02-27)

## [3.0.2-develop.2](https://github.com/cheqd/sdk/compare/3.0.2-develop.1...3.0.2-develop.2) (2023-02-27)

## [3.0.2](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2) (2023-02-20)

Expand Down
Loading

0 comments on commit 2ddf7ee

Please sign in to comment.