[LUM-861] Wallet -> Update JS SDK #198
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
# This workflow is intended to run each time a pull request is opened or updated | |
# It's performing unit and interface tests, and deploying on preview channels | |
name: Lint, format, test and deploy the wallet on pull request events | |
on: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
jobs: | |
build_and_preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Node version to 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Install packages | |
run: yarn && cd src/frontend-elements && yarn | |
- name: Build for Mainnet | |
run: yarn build | |
env: | |
SASS_PATH: "node_modules:src/styles" | |
GENERATE_SOURCEMAP: "false" | |
REACT_APP_RPC_URL: "https://node0.mainnet.lum.network/rpc" | |
- name: Test | |
run: yarn test | |
- name: Deploy Mainnet Preview | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' | |
expires: 7d | |
projectId: lum-network | |
target: lum-network-wallet | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |