Skip to content

Commit

Permalink
add e2e tests for interchainjs and networks cosmos
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed May 31, 2024
1 parent 5afd185 commit 0a37810
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Run E2E Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
interchainjs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository 📝
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

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

- name: Build Project
run: yarn build

- name: Set Up Starship Infrastructure
id: starship-infra
uses: cosmology-tech/[email protected]
with:
values: libs/interchainjs/starship/configs/config.workflow.yaml
port-forward: true
version: 0.1.38

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

networks-cosmos:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository 📝
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'

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

- name: Build Project
run: yarn build

- name: Set Up Starship Infrastructure
id: starship-infra
uses: cosmology-tech/[email protected]
with:
values: networks/cosmos/starship/configs/config.workflow.yaml
port-forward: true
version: 0.1.38

- name: Run E2E Tests
run: cd ./networks/cosmos && yarn starship:test
2 changes: 2 additions & 0 deletions networks/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"starship:test": "jest --config ./jest.starship.config.js --verbose --bail",
"starship:debug": "jest --config ./jest.starship.config.js --runInBand --verbose --bail",
"starship:watch": "jest --watch --config ./jest.starship.config.js",
"starship:all": "yarn starship setup && sleep 10 && yarn starship deploy && yarn starship wait-for-pods && yarn starship get-pods && yarn starship start-ports && yarn starship port-pids",
"starship:clean": "yarn starship clean",
"prepare": "npm run build"
},
"dependencies": {
Expand Down

0 comments on commit 0a37810

Please sign in to comment.