docs: add npm build
to readme.md
#193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Finschia-Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: if [ ! -x "$(command -v yarn)" ]; then npm install -g yarn; fi | |
- name: Version information | |
run: echo "node $(node --version)"; echo "yarn $(yarn --version)" | |
- name: Install dependencies | |
run: | | |
yarn cache clean --all | |
yarn install | |
- name: Build | |
run: yarn build | |
- name: start finschia with relayer | |
run: | | |
cd scripts/with-ibc | |
docker-compose up -d | |
- name: init contract on finschia | |
run: scripts/with-ibc/finschia/init.sh | |
- name: Unit Test | |
run: SIMAPP_ENABLED=true IBC_ENABLED=true yarn run test |