Skip to content

apply pnpm #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
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
78 changes: 66 additions & 12 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,31 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Build Project
run: yarn build
run: pnpm build

- name: Set Up Starship Infrastructure
id: starship-infra
Expand All @@ -36,7 +54,7 @@ jobs:
config: libs/interchainjs/starship/configs/config.workflow.yaml

- name: Run E2E Tests
run: cd ./libs/interchainjs && yarn starship:test
run: cd ./libs/interchainjs && pnpm starship:test

networks-cosmos:
runs-on: ubuntu-latest
Expand All @@ -49,13 +67,31 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Build Project
run: yarn build
run: pnpm build

- name: Set Up Starship Infrastructure
id: starship-infra
Expand All @@ -64,7 +100,7 @@ jobs:
config: networks/cosmos/starship/configs/config.workflow.yaml

- name: Run E2E Tests
run: cd ./networks/cosmos && yarn starship:test
run: cd ./networks/cosmos && pnpm starship:test

networks-ethereum:
runs-on: ubuntu-latest
Expand All @@ -77,13 +113,31 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Build Project
run: yarn build
run: pnpm build

- name: Set Up Starship Infrastructure
id: starship-infra
Expand All @@ -92,4 +146,4 @@ jobs:
config: networks/ethereum/starship/configs/eth-lite.yaml

- name: Run E2E Tests
run: cd ./networks/ethereum && yarn starship:test && yarn test:utils
run: cd ./networks/ethereum && pnpm starship:test && pnpm test:utils
26 changes: 22 additions & 4 deletions .github/workflows/injective-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,31 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Build Project
run: yarn build
run: pnpm build

- name: Set Up Starship Infrastructure
id: starship-infra
Expand All @@ -30,4 +48,4 @@ jobs:
config: networks/injective/starship/configs/config.workflow.yaml

- name: Run E2E Tests
run: cd ./networks/injective && yarn starship:test
run: cd ./networks/injective && pnpm starship:test
26 changes: 22 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,30 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "yarn"

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install --no-frozen-lockfile

- name: Build Project
run: yarn build
run: pnpm build
- name: test
run: yarn test
run: pnpm test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
**/dist
**/dist_spec
**/yarn-error.log
**/pnpm-error.log
lerna-debug.log

# pnpm
.pnpm-store/
**/node-compile-cache/

.claude
CLAUDE.md
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shamefully-hoist=true
strict-peer-dependencies=false
auto-install-peers=true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ graph LR

This guide will walk you through the process of installing and setting up interchainjs for your project.

You can install interchainjs using Yarn:
You can install interchainjs using pnpm:

```bash
yarn add interchainjs
yarn add @interchainjs/cosmos
pnpm add interchainjs
pnpm add @interchainjs/cosmos
```

or npm
Expand Down
6 changes: 3 additions & 3 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ graph LR

This guide will walk you through the process of installing and setting up interchainjs for your project.

You can install interchainjs using Yarn:
You can install interchainjs using pnpm:

```bash
yarn add interchainjs
yarn add @interchainjs/cosmos
pnpm add interchainjs
pnpm add @interchainjs/cosmos
```

or npm
Expand Down
6 changes: 3 additions & 3 deletions docs/libs/interchainjs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -694,16 +694,16 @@ The `@interchainjs/pubkey` package provides utilities for working with pubkeys.
When first cloning the repo:

```shell
yarn
yarn build:dev
pnpm install
pnpm build:dev
```

### Codegen

Contract schemas live in `./contracts`, and protos in `./proto`. Look inside of `scripts/interchainjs.telescope.json` and configure the settings for bundling your SDK and contracts into `interchainjs`:

```shell
yarn codegen
pnpm codegen
```

## Interchain JavaScript Stack ⚛️
Expand Down
30 changes: 15 additions & 15 deletions docs/libs/interchainjs/starship/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,44 @@ Deploy

```sh
# setup helm/starship
yarn starship setup
pnpm starship setup

# sanity check
yarn starship get-pods
pnpm starship get-pods

# deploy starship
yarn starship deploy
pnpm starship deploy

# wait til STATUS=Running
yarn starship wait-for-pods
pnpm starship wait-for-pods
or
watch yarn starship get-pods
watch pnpm starship get-pods

# port forwarding
yarn starship start-ports
pnpm starship start-ports

# check pids
yarn starship port-pids
pnpm starship port-pids
```

Run Tests

```sh
# test
yarn starship:test
pnpm starship:test

# watch
yarn starship:watch
pnpm starship:watch
```

Teardown

```sh
# stop port forwarding (done by clean() too)
# yarn starship stop-ports
# pnpm starship stop-ports

# stop ports and delete & remove helm chart
yarn starship clean
pnpm starship clean
```

## 1. Installation
Expand All @@ -56,7 +56,7 @@ Note: To make the process easy we have a simple command that will try and instal
so that you dont have to.

```bash
yarn starship setup
pnpm starship setup
```

This command will
Expand All @@ -79,7 +79,7 @@ to a kubernetes cluster locally.
NOTE: Resources constraint on local machine will affect the performance of Starship spinup time

```bash
yarn starship setup-kind
pnpm starship setup-kind
```

Run the following command to check connection to a k8s cluster
Expand All @@ -95,7 +95,7 @@ Now with the dependencies and a kubernetes cluster in handy, we can proceed with
Run

```bash
yarn starship deploy
pnpm starship deploy
```

We use the config file `configs/config.yaml` as the genesis file to define the topology of the e2e test infra. Change it as required
Expand Down Expand Up @@ -133,7 +133,7 @@ Which will
If you are using kind for your kubernetes cluster, you can delete it with

```bash
yarn starship clean-kind
pnpm starship clean-kind
```

## Related
Expand Down
Loading
Loading