Merge pull request #146 from bandprotocol/feat/integrate-leap-wallet #174
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: Cosmoscan Build Workflow | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Cache node_modules | |
id: scan-node-modules-cache | |
uses: actions/cache@v3 | |
with: | |
path: ./node_modules | |
key: ${{ runner.OS }}-scan-test-${{ hashFiles('**/yarn.lock') }} | |
- name: Yarn install deps with node_modules cache | |
run: | | |
yarn install --frozen-lockfile | |
- name: Build ReScript | |
env: | |
RPC_URL: 'https://laozi-testnet6.bandchain.org/api' | |
GRAPHQL_URL: 'graphql-lt6.bandchain.org/v1/graphql' | |
LAMBDA_URL: 'https://asia-southeast1-testnet-instances.cloudfunctions.net/executer-cosmoscan' | |
GRPC: 'https://laozi-testnet6.bandchain.org/grpc-web' | |
FAUCET_URL: 'https://laozi-testnet6.bandchain.org/faucet' | |
run: | | |
yarn build | |
- name: Yarn test | |
run: | | |
yarn test |