-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.26 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
# 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