[LUM-776] WebApp -> Integrate Leaderboard #91
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
# 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 millions 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 16 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
- name: Install packages | |
run: yarn | |
- name: Build | |
run: yarn build | |
env: | |
REACT_APP_API_URL: "https://explorer-mainnet.infra.lum.network" | |
REACT_APP_IMPERATOR_API_URL: "https://api-osmosis.imperator.co" | |
GENERATE_SOURCEMAP: "false" | |
REACT_APP_RPC_LUM: "https://node0.mainnet.lum.network/rpc" | |
REACT_APP_RPC_ATOM: "https://rpc.cosmoshub.strange.love/" | |
REACT_APP_FIREBASE_API_KEY: "AIzaSyA49DTslUcJG2b5TUdI_EbPzugFFXOfO0o" | |
REACT_APP_FIREBASE_AUTH_DOMAIN: "lum-network.firebaseapp.com" | |
REACT_APP_FIREBASE_DATABASE_URL: "https://lum-network-default-rtdb.firebaseio.com" | |
REACT_APP_FIREBASE_PROJECT_ID: "lum-network" | |
REACT_APP_FIREBASE_STORAGE_BUCKET: "lum-network.appspot.com" | |
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: "904911254564" | |
REACT_APP_FIREBASE_APP_ID: "1:904911254564:web:a0297e7aa68664410394b1" | |
REACT_APP_FIREBASE_MEASUREMENT_ID: "G-FZ28RMP812" | |
- name: Test | |
run: yarn test | |
- name: Deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' | |
expires: 7d | |
projectId: lum-network | |
target: mainnet | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |