Skip to content

Commit

Permalink
Merge pull request #20 from department-of-veterans-affairs/chore/6865…
Browse files Browse the repository at this point in the history
…-app-build-workflow

Adding workflow to run checks against the VA Mobile App
  • Loading branch information
timwright12 authored Oct 4, 2023
2 parents 131bde9 + 177bc4d commit da2cb3c
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/check-component-integrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# Checking instances where we're integrating with apps
#

name: 'Check Component Integrations'

on:
push:
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 token dependencies (va-mobile-library)
working-directory: va-mobile-library/packages/tokens
run: yarn install --immutable

- name: Install component dependencies (va-mobile-library)
working-directory: va-mobile-library/packages/components
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
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)
working-directory: va-mobile-app/VAMobile
run: yarn test --testTimeout=30000

0 comments on commit da2cb3c

Please sign in to comment.