-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.43 KB
/
check-component-integrations.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
#
# Checking instances where we're integrating with apps
#
name: 'Check Component Integrations'
on:
workflow_dispatch:
push:
paths: ['packages/components/**']
branches:
- main
jobs:
check-integrations:
runs-on: ubuntu-latest
steps:
- name: Checkout (va-mobile-library)
id: clone-lib
uses: actions/checkout@v4
with:
path: va-mobile-library
- name: Checkout (va-mobile-app)
id: clone-app
uses: actions/checkout@v4
with:
repository: department-of-veterans-affairs/va-mobile-app
ref: 'develop'
path: va-mobile-app
- name: Install dependencies (va-mobile-library)
working-directory: va-mobile-library
run: yarn install --immutable
- name: Install dependencies (va-mobile-app)
working-directory: va-mobile-app/VAMobile
run: yarn install
- name: Install local component library
working-directory: va-mobile-app/VAMobile
run: yarn add file:../../va-mobile-library/packages/components
- name: Compile TypeScript (va-mobile-app)
working-directory: va-mobile-app/VAMobile
run: yarn tsc:compile
- name: Run Unit Tests (va-mobile-app)
uses: nick-fields/retry@v2
with:
timeout_minutes: 20
max_attempts: 3
command: |
cd va-mobile-app/VAMobile
yarn test --testTimeout=30000