-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (60 loc) · 1.71 KB
/
pr.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build PR
on:
pull_request:
branches: [develop]
concurrency:
group: pr-build-${{ github.head_ref }}
cancel-in-progress: true
jobs:
define_shared_variables:
runs-on: ubuntu-latest
env:
NODE_VERSION: 16.15.1
steps:
- name: Export variables to JSON
id: varsStep
uses: actions/github-script@v6
with:
script: core.setOutput('value', ${{ toJson(env) }})
outputs:
vars: ${{ steps.varsStep.outputs.value }}
share_variables:
uses: ./.github/workflows/define-shared-variables.yml
needs: define_shared_variables
with:
shared-variables: ${{ needs.define_shared_variables.outputs.vars }}
install_dependencies:
uses: ./.github/workflows/install-dependencies.yml
needs: share_variables
build_lib:
uses: ./.github/workflows/base-build.yml
needs: install_dependencies
with:
appName: dynamic-form
branch: temp
build_showcase:
uses: ./.github/workflows/base-build.yml
needs: install_dependencies
with:
appName: showcase
branch: temp
artifactName: showcase
create_showcase_preview_link:
uses: ./.github/workflows/deploy-to-firebase.yml
needs: [build_showcase]
with:
branch: temp
artifactName: showcase
target: showcase
expires: 2d
secrets:
FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
check_for_failures:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Finish build
needs: [build_lib,create_showcase_preview_link]
steps:
- name: Check build status
if: ${{ needs.build_lib.result != 'success' || needs.create_showcase_preview_link.result != 'success' }}
run: exit 1