-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (38 loc) · 1.33 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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://private-rpc-cm-lum.imperator.co"
- 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