Skip to content

feat: add base UI for masp overview (#1144) #984

feat: add base UI for masp overview (#1144)

feat: add base UI for masp overview (#1144) #984

name: Build interface and caches at push to main
on:
push:
branches:
- main
env:
INDEXER_URL: https://indexer.public.heliax.work/internal-devnet-43.35fd77a4447
RPC_URL: https://proxy.public.heliax.work/internal-devnet-43.35fd77a4447
CHAIN_ID: internal-devnet-43.35fd77a4447
CI: false
jobs:
build:
name: Build and deploy Namadillo and extension
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache
- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: build
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Build Namadillo
working-directory: ./apps/namadillo
run: yarn build
- name: Configure Namadillo
working-directory: ./apps/namadillo
run: |
echo "" > dist/config.toml
echo "indexer_url = \"${{ env.INDEXER_URL }}\"" >> dist/config.toml
echo "rpc_url = \"${{ env.RPC_URL }}\"" >> dist/config.toml
- name: Build the Chrome extension
working-directory: ./apps/extension
run: yarn build:chrome
env:
NAMADA_INTERFACE_NAMADA_CHAIN_ID: ${{ env.CHAIN_ID }}
- name: Build the Firefox extension
working-directory: ./apps/extension
run: yarn build:firefox
env:
NAMADA_INTERFACE_NAMADA_CHAIN_ID: ${{ env.CHAIN_ID }}
- name: Copy the extensions for deployment
run: |
cp apps/extension/build/firefox/namada_keychain-*.zip apps/namadillo/dist/namada-keychain-firefox.zip
cp apps/extension/build/chrome/namada_keychain-*.zip apps/namadillo/dist/namada-keychain-chrome.zip
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2.3
with:
publish-dir: "./apps/namadillo/dist"
production-deploy: true
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Merged PR ${{ github.event.number }} to main"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_ACCESS_TOKEN_WALLET_PREVIEW }}
# https://namada-interface-dev.netlify.app/
NETLIFY_SITE_ID: 2380782e-9b20-477a-bc27-b4e9d05e16f3
rust-unit-test-js-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache
- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: unit-tests-js
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Compile WASM
run: yarn wasm:build-test
rust-unit-test-wasm-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache
- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: unit-tests-wasm
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Install wsrun
run: npm install -g wsrun
- name: Run unit tests
id: run-unit-tests
run: yarn test-wasm:ci
rust-multicore-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache
- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: build-multicore
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Build WASM dependencies
working-directory: ./apps/extension
run: yarn wasm:build:multicore