[LUM-847] Website -> Update Oct 2023 #84
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 website 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 | |
with: | |
submodules: recursive | |
- name: Install packages | |
run: yarn | |
- name: Build | |
run: yarn build | |
env: | |
SASS_PATH: "node_modules:src/styles" | |
REACT_APP_CHAIN_BRIDGE_URL: https://explorer-mainnet.infra.lum.network | |
- name: Test | |
run: yarn test --passWithNoTests | |
- name: Deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}' | |
expires: 7d | |
projectId: lum-network | |
target: lum-network-website | |
env: | |
FIREBASE_CLI_PREVIEWS: hostingchannels |