-
Notifications
You must be signed in to change notification settings - Fork 108
57 lines (50 loc) · 1.5 KB
/
interface-ci-review.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
name: Deploy UI to Review
on:
push:
branches: [main, 2627-pulumi-1p-secrets]
workflow_dispatch:
inputs:
commit:
description: "Leave blank to use current HEAD, or provide an override commit SHA"
type: string
required: false
jobs:
ui-test:
runs-on: ubuntu-latest
steps:
- id: ref
uses: passportxyz/gh-workflows/.github/actions/load_commit_ref@v1
with:
commit: ${{ github.event.inputs.commit }}
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ steps.ref.outputs.refspec }}
fetch-depth: 0
- name: Install UI dependencies
working-directory: ./interface
run: yarn --frozen-lockfile && yarn build
- name: Run tests
working-directory: ./interface
run: yarn test
outputs:
version_tag: ${{ steps.ref.outputs.version_tag }}
docker_tag: ${{ steps.ref.outputs.docker_tag }}
refspec: ${{ steps.ref.outputs.refspec }}
deploy-app:
needs: [ui-test]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.ui-test.outputs.refspec }}
fetch-depth: 0
- name: Push code to branch
uses: passportxyz/gh-workflows/.github/actions/push_to_branch@v1
with:
commit: ${{ needs.ui-test.outputs.refspec }}
github-token: ${{ secrets.GITHUB_TOKEN }}
branch: review-interface