Merge pull request #513 from department-of-veterans-affairs/feature/4… #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 --check-cache | |
- name: Install local mobile-components and dependencies (va-mobile-app) | |
working-directory: va-mobile-app/VAMobile | |
run: yarn add file:../../va-mobile-library/packages/components && yarn install | |
- 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 | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 15 |