From de5bf0175ea5d87c310151d3dd727ce92ca36340 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 10:38:13 -0400 Subject: [PATCH 01/33] Init push for CI app build run --- .github/workflows/build-va-mobile-app.yml | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/build-va-mobile-app.yml diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml new file mode 100644 index 00000000..aa76e96a --- /dev/null +++ b/.github/workflows/build-va-mobile-app.yml @@ -0,0 +1,56 @@ +# +# Code checks – linting and unit tests +# + +name: 'Test Build: va-mobile-app' + +on: push + +jobs: + setup-repos: + runs-on: ubuntu-latest + steps: + - name: Checkout va-mobile-library + uses: actions/checkout@v3 + with: + path: va-mobile-library + + - name: Checkout va-mobile-app + uses: actions/checkout@v3 + with: + repository: department-of-veterans-affairs/va-mobile-app + path: va-mobile-app + + setup-mobile-library: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'yarn' + + - name: Install global dependencies + run: yarn install --immutable + working-directory: va-mobile-library + + - name: Install token dependencies + working-directory: va-mobile-library/packages/token + run: yarn install --immutable + + - name: Install component dependencies + working-directory: va-mobile-library/packages/component + run: yarn install --immutable + + setup-mobile-app: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install token dependencies + working-directory: va-mobile-app/VAMobile + run: yarn install From 71a24f5a9a563fe1fafa3de2aef732e0fecfb58b Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:04:57 -0400 Subject: [PATCH 02/33] added ids --- .github/workflows/build-va-mobile-app.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index aa76e96a..ff7ef7a6 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -11,11 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout va-mobile-library + id: clone-lib uses: actions/checkout@v3 with: path: va-mobile-library - name: Checkout va-mobile-app + id: clone-app uses: actions/checkout@v3 with: repository: department-of-veterans-affairs/va-mobile-app @@ -23,6 +25,7 @@ jobs: setup-mobile-library: runs-on: ubuntu-latest + needs: setup-repos steps: - name: Checkout uses: actions/checkout@v3 @@ -47,6 +50,7 @@ jobs: setup-mobile-app: runs-on: ubuntu-latest + needs: setup-repos steps: - name: Checkout uses: actions/checkout@v3 From ebb981da48ccb1f273d5805520a1757985b72d1f Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:08:27 -0400 Subject: [PATCH 03/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index ff7ef7a6..475427f8 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -13,15 +13,15 @@ jobs: - name: Checkout va-mobile-library id: clone-lib uses: actions/checkout@v3 - with: - path: va-mobile-library + # with: + # path: va-mobile-library - name: Checkout va-mobile-app id: clone-app uses: actions/checkout@v3 with: repository: department-of-veterans-affairs/va-mobile-app - path: va-mobile-app + # path: va-mobile-app setup-mobile-library: runs-on: ubuntu-latest From 0da39540847ef8d9c84ad6bea8ac8cc33b17b1d5 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:09:10 -0400 Subject: [PATCH 04/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 475427f8..ab854d0a 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -38,14 +38,14 @@ jobs: - name: Install global dependencies run: yarn install --immutable - working-directory: va-mobile-library + # working-directory: va-mobile-library - name: Install token dependencies - working-directory: va-mobile-library/packages/token + working-directory: ./packages/token run: yarn install --immutable - name: Install component dependencies - working-directory: va-mobile-library/packages/component + working-directory: ./packages/component run: yarn install --immutable setup-mobile-app: From 8f00a1efb08e7142bb6c3cefe54ba67d5e2639c8 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:16:52 -0400 Subject: [PATCH 05/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index ab854d0a..98e06dbf 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -37,15 +37,15 @@ jobs: cache: 'yarn' - name: Install global dependencies - run: yarn install --immutable + run: pwd && yarn install --immutable # working-directory: va-mobile-library - name: Install token dependencies - working-directory: ./packages/token + working-directory: packages/token run: yarn install --immutable - name: Install component dependencies - working-directory: ./packages/component + working-directory: packages/component run: yarn install --immutable setup-mobile-app: From a0568d419203d4c2d20d65feba1369d3542364c7 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:20:54 -0400 Subject: [PATCH 06/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 98e06dbf..d693021d 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -37,7 +37,7 @@ jobs: cache: 'yarn' - name: Install global dependencies - run: pwd && yarn install --immutable + run: pwd && ls # working-directory: va-mobile-library - name: Install token dependencies @@ -45,7 +45,7 @@ jobs: run: yarn install --immutable - name: Install component dependencies - working-directory: packages/component + # working-directory: packages/component run: yarn install --immutable setup-mobile-app: From b7f2b4cb08a105a410a189f2c45c10ad6d6dd573 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:23:41 -0400 Subject: [PATCH 07/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index d693021d..3b040cc3 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -37,15 +37,15 @@ jobs: cache: 'yarn' - name: Install global dependencies - run: pwd && ls + run: pwd && yarn install --immutable # working-directory: va-mobile-library - name: Install token dependencies - working-directory: packages/token + working-directory: va-mobile-library/packages/token run: yarn install --immutable - name: Install component dependencies - # working-directory: packages/component + working-directory: va-mobile-library/packages/component run: yarn install --immutable setup-mobile-app: @@ -56,5 +56,5 @@ jobs: uses: actions/checkout@v3 - name: Install token dependencies - working-directory: va-mobile-app/VAMobile + working-directory: va-mobile-library/va-mobile-app/VAMobile run: yarn install From 5e850ffabc568b9d964dfc97ac3ae62d2c4053e2 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:26:02 -0400 Subject: [PATCH 08/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 3b040cc3..f3788be7 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -38,15 +38,14 @@ jobs: - name: Install global dependencies run: pwd && yarn install --immutable - # working-directory: va-mobile-library - name: Install token dependencies - working-directory: va-mobile-library/packages/token - run: yarn install --immutable + working-directory: packages/token + run: pwd && ls && yarn install --immutable - name: Install component dependencies - working-directory: va-mobile-library/packages/component - run: yarn install --immutable + working-directory: packages/component + run: pwd && ls && yarn install --immutable setup-mobile-app: runs-on: ubuntu-latest From 275fd23e98cc235e72f3851403321781a1867aba Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 13:28:29 -0400 Subject: [PATCH 09/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index f3788be7..1c536027 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -40,12 +40,12 @@ jobs: run: pwd && yarn install --immutable - name: Install token dependencies - working-directory: packages/token - run: pwd && ls && yarn install --immutable + working-directory: packages + run: pwd && ls - - name: Install component dependencies - working-directory: packages/component - run: pwd && ls && yarn install --immutable + # - name: Install component dependencies + # working-directory: packages/component + # run: pwd && ls && yarn install --immutable setup-mobile-app: runs-on: ubuntu-latest @@ -54,6 +54,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Install token dependencies + - name: Install app dependencies working-directory: va-mobile-library/va-mobile-app/VAMobile - run: yarn install + run: pwd && ls From a41ce07c171951cbbc9dcdb1f13320fc647ac8a6 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 14:36:47 -0400 Subject: [PATCH 10/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 1c536027..84c44ccf 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v3 with: repository: department-of-veterans-affairs/va-mobile-app - # path: va-mobile-app + path: va-mobile-app setup-mobile-library: runs-on: ubuntu-latest @@ -40,7 +40,7 @@ jobs: run: pwd && yarn install --immutable - name: Install token dependencies - working-directory: packages + working-directory: packages/tokens run: pwd && ls # - name: Install component dependencies From 32ea60f208b7f4b23cb93383bb8c130ec7f7f3ef Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 14:42:33 -0400 Subject: [PATCH 11/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 84c44ccf..0c708bf3 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -37,15 +37,15 @@ jobs: cache: 'yarn' - name: Install global dependencies - run: pwd && yarn install --immutable + run: yarn install --immutable - name: Install token dependencies working-directory: packages/tokens - run: pwd && ls + run: yarn install --immutable - # - name: Install component dependencies - # working-directory: packages/component - # run: pwd && ls && yarn install --immutable + - name: Install component dependencies + working-directory: packages/components + run: yarn install --immutable setup-mobile-app: runs-on: ubuntu-latest @@ -55,5 +55,5 @@ jobs: uses: actions/checkout@v3 - name: Install app dependencies - working-directory: va-mobile-library/va-mobile-app/VAMobile + working-directory: va-mobile-app/VAMobile run: pwd && ls From 357a0a737b2349636155e09d966dcd7af63ac4ee Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 14:50:46 -0400 Subject: [PATCH 12/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 29 +++++++---------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 0c708bf3..081069a3 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -6,29 +6,13 @@ name: 'Test Build: va-mobile-app' on: push -jobs: - setup-repos: +jobs: + setup-mobile-library: runs-on: ubuntu-latest steps: - name: Checkout va-mobile-library id: clone-lib uses: actions/checkout@v3 - # with: - # path: va-mobile-library - - - name: Checkout va-mobile-app - id: clone-app - uses: actions/checkout@v3 - with: - repository: department-of-veterans-affairs/va-mobile-app - path: va-mobile-app - - setup-mobile-library: - runs-on: ubuntu-latest - needs: setup-repos - steps: - - name: Checkout - uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 @@ -49,11 +33,14 @@ jobs: setup-mobile-app: runs-on: ubuntu-latest - needs: setup-repos steps: - - name: Checkout + - name: Checkout va-mobile-app + id: clone-app uses: actions/checkout@v3 + with: + repository: department-of-veterans-affairs/va-mobile-app + path: va-mobile-app - name: Install app dependencies - working-directory: va-mobile-app/VAMobile + # working-directory: va-mobile-app run: pwd && ls From 1e967b323766fe3bc8b5de6bbcfbdc2155ef7c37 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 14:54:05 -0400 Subject: [PATCH 13/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 081069a3..3657a8c3 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -42,5 +42,5 @@ jobs: path: va-mobile-app - name: Install app dependencies - # working-directory: va-mobile-app + working-directory: va-mobile-library/va-mobile-app run: pwd && ls From bb21b4d29cb6822b51a0e562eb86fadeecbb0d40 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 14:54:56 -0400 Subject: [PATCH 14/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 3657a8c3..f114a090 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -42,5 +42,5 @@ jobs: path: va-mobile-app - name: Install app dependencies - working-directory: va-mobile-library/va-mobile-app + working-directory: va-mobile-app run: pwd && ls From 1aee5feab9707e971ddb67b35797f5783eb6d3d6 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 14:56:27 -0400 Subject: [PATCH 15/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index f114a090..7d512c76 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -42,5 +42,5 @@ jobs: path: va-mobile-app - name: Install app dependencies - working-directory: va-mobile-app - run: pwd && ls + working-directory: va-mobile-app/VAMobile + run: yarn install From 55386a6d56de622842dd2642681aee709c1f071a Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 15:06:10 -0400 Subject: [PATCH 16/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 26 ++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 7d512c76..a876ab6e 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -32,7 +32,7 @@ jobs: run: yarn install --immutable setup-mobile-app: - runs-on: ubuntu-latest + runs-on: macos-latest-xl steps: - name: Checkout va-mobile-app id: clone-app @@ -40,7 +40,31 @@ jobs: with: repository: department-of-veterans-affairs/va-mobile-app path: va-mobile-app + + - name: Setup Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - name: Install macOS dependencies + run: | + brew tap wix/brew + brew install applesimutils + env: + HOMEBREW_NO_AUTO_UPDATE: 1 + HOMEBREW_NO_INSTALL_CLEANUP: 1 - name: Install app dependencies working-directory: va-mobile-app/VAMobile run: yarn install + + - name: Set app environment variables + run: yarn env:staging + + - name: Install pods + working-directory: va-mobile-app/VAMobile/ios + run: pod install + + - name: Install Ruby gems + working-directory: va-mobile-app/VAMobile/ios + run: bundle install From 780bd1822e525acd9fc078a1bfcbbb13e5a274ec Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 15:11:05 -0400 Subject: [PATCH 17/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index a876ab6e..a06934be 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -59,6 +59,7 @@ jobs: run: yarn install - name: Set app environment variables + working-directory: va-mobile-app/VAMobile run: yarn env:staging - name: Install pods From a46d8cacb4f85048b2d88f78be63053e68b68d40 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 29 Sep 2023 15:22:11 -0400 Subject: [PATCH 18/33] updating CI --- .github/workflows/build-va-mobile-app.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index a06934be..745a9f01 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -69,3 +69,12 @@ jobs: - name: Install Ruby gems working-directory: va-mobile-app/VAMobile/ios run: bundle install + + - name: Build iOS + working-directory: va-mobile-app/VAMobile/ + run: yarn bundle:ios + + - name: Build Android + working-directory: va-mobile-app/VAMobile/ + run: yarn bundle:android + From c8466063b7aab3c9d1614e9deb93e4b6f373b839 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Tue, 3 Oct 2023 16:51:02 -0400 Subject: [PATCH 19/33] add tsc compile and unit tests --- .github/workflows/build-va-mobile-app.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 745a9f01..c30c8c0d 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -70,11 +70,11 @@ jobs: working-directory: va-mobile-app/VAMobile/ios run: bundle install - - name: Build iOS + - name: Run tsc:compile for va-mobile-app working-directory: va-mobile-app/VAMobile/ - run: yarn bundle:ios + run: yarn tsc:compile - - name: Build Android + - name: Run unit tests for va-mobile-app working-directory: va-mobile-app/VAMobile/ - run: yarn bundle:android + run: yarn test From a21fb29bb33053658237d971c32eb845505ecb6e Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 08:35:50 -0400 Subject: [PATCH 20/33] remove some things --- .github/workflows/build-va-mobile-app.yml | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index c30c8c0d..c2430e8b 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -32,7 +32,7 @@ jobs: run: yarn install --immutable setup-mobile-app: - runs-on: macos-latest-xl + runs-on: ubuntu-latest steps: - name: Checkout va-mobile-app id: clone-app @@ -41,18 +41,18 @@ jobs: repository: department-of-veterans-affairs/va-mobile-app path: va-mobile-app - - name: Setup Xcode - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: latest-stable + # - name: Setup Xcode + # uses: maxim-lobanov/setup-xcode@v1 + # with: + # xcode-version: latest-stable - - name: Install macOS dependencies - run: | - brew tap wix/brew - brew install applesimutils - env: - HOMEBREW_NO_AUTO_UPDATE: 1 - HOMEBREW_NO_INSTALL_CLEANUP: 1 + # - name: Install macOS dependencies + # run: | + # brew tap wix/brew + # brew install applesimutils + # env: + # HOMEBREW_NO_AUTO_UPDATE: 1 + # HOMEBREW_NO_INSTALL_CLEANUP: 1 - name: Install app dependencies working-directory: va-mobile-app/VAMobile @@ -62,13 +62,13 @@ jobs: working-directory: va-mobile-app/VAMobile run: yarn env:staging - - name: Install pods - working-directory: va-mobile-app/VAMobile/ios - run: pod install + # - name: Install pods + # working-directory: va-mobile-app/VAMobile/ios + # run: pod install - - name: Install Ruby gems - working-directory: va-mobile-app/VAMobile/ios - run: bundle install + # - name: Install Ruby gems + # working-directory: va-mobile-app/VAMobile/ios + # run: bundle install - name: Run tsc:compile for va-mobile-app working-directory: va-mobile-app/VAMobile/ @@ -76,5 +76,5 @@ jobs: - name: Run unit tests for va-mobile-app working-directory: va-mobile-app/VAMobile/ - run: yarn test + run: yarn test --testTimeout=30000 From c77e258fd614775b25677a5eb1f2299502426ab5 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 08:56:06 -0400 Subject: [PATCH 21/33] upgrade checkout action --- .github/workflows/build-va-mobile-app.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index c2430e8b..ce4777ea 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout va-mobile-library id: clone-lib - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v3 @@ -36,9 +36,10 @@ jobs: steps: - name: Checkout va-mobile-app id: clone-app - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: department-of-veterans-affairs/va-mobile-app + ref: 'develop' path: va-mobile-app # - name: Setup Xcode From 4869dc8ad195654a29bec1670cbd769f022f49e6 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 09:02:09 -0400 Subject: [PATCH 22/33] Run workflow --- .github/workflows/build-va-mobile-app.yml | 41 +++++------------------ 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index ce4777ea..e22ccb7f 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -13,6 +13,8 @@ jobs: - name: Checkout va-mobile-library id: clone-lib uses: actions/checkout@v4 + with: + path: va-mobile-library - name: Setup Node uses: actions/setup-node@v3 @@ -20,62 +22,37 @@ jobs: node-version: '18' cache: 'yarn' - - name: Install global dependencies + - name: Install global dependencies (va-mobile-library) run: yarn install --immutable - - name: Install token dependencies + - name: Install token dependencies (va-mobile-library) working-directory: packages/tokens run: yarn install --immutable - - name: Install component dependencies + - name: Install component dependencies (va-mobile-library) working-directory: packages/components run: yarn install --immutable setup-mobile-app: runs-on: ubuntu-latest steps: - - name: Checkout va-mobile-app + - 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: Setup Xcode - # uses: maxim-lobanov/setup-xcode@v1 - # with: - # xcode-version: latest-stable - - # - name: Install macOS dependencies - # run: | - # brew tap wix/brew - # brew install applesimutils - # env: - # HOMEBREW_NO_AUTO_UPDATE: 1 - # HOMEBREW_NO_INSTALL_CLEANUP: 1 - - name: Install app dependencies + - name: Install dependencies (va-mobile-app) working-directory: va-mobile-app/VAMobile run: yarn install - - - name: Set app environment variables - working-directory: va-mobile-app/VAMobile - run: yarn env:staging - - # - name: Install pods - # working-directory: va-mobile-app/VAMobile/ios - # run: pod install - - # - name: Install Ruby gems - # working-directory: va-mobile-app/VAMobile/ios - # run: bundle install - - name: Run tsc:compile for va-mobile-app + - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ run: yarn tsc:compile - - name: Run unit tests for va-mobile-app + - name: Run Unit Tests (va-mobile-app) working-directory: va-mobile-app/VAMobile/ run: yarn test --testTimeout=30000 From 647a3390aba1c6d0211046807f23189364584e95 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 09:03:07 -0400 Subject: [PATCH 23/33] Run workflow --- .github/workflows/build-va-mobile-app.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index e22ccb7f..d24b5e24 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -13,8 +13,8 @@ jobs: - name: Checkout va-mobile-library id: clone-lib uses: actions/checkout@v4 - with: - path: va-mobile-library + # with: + # path: va-mobile-library - name: Setup Node uses: actions/setup-node@v3 From cee2a5a19793fe8eae4ac0ea35f3c1adf014b9e4 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 09:12:56 -0400 Subject: [PATCH 24/33] Run workflow --- .github/workflows/build-va-mobile-app.yml | 44 +++++++++++++++++------ 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index d24b5e24..cf5d5bea 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -10,11 +10,11 @@ jobs: setup-mobile-library: 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-library + # id: clone-lib + # uses: actions/checkout@v4 + # # with: + # # path: va-mobile-library - name: Setup Node uses: actions/setup-node@v3 @@ -22,20 +22,38 @@ jobs: node-version: '18' cache: 'yarn' + # - name: Install global dependencies (va-mobile-library) + # run: yarn install --immutable + + # - name: Install token dependencies (va-mobile-library) + # working-directory: packages/tokens + # run: yarn install --immutable + + # - name: Install component dependencies (va-mobile-library) + # working-directory: packages/components + # run: yarn install --immutable + + setup-mobile-app: + runs-on: ubuntu-latest + steps: + - name: Checkout va-mobile-library + id: clone-lib + uses: actions/checkout@v4 + with: + path: va-mobile-library + - name: Install global dependencies (va-mobile-library) + working-directory: va-mobile-library run: yarn install --immutable - name: Install token dependencies (va-mobile-library) - working-directory: packages/tokens + working-directory: va-mobile-library/packages/tokens run: yarn install --immutable - name: Install component dependencies (va-mobile-library) - working-directory: packages/components + working-directory: va-mobile-library/packages/components run: yarn install --immutable - setup-mobile-app: - runs-on: ubuntu-latest - steps: - name: Checkout (va-mobile-app) id: clone-app uses: actions/checkout@v4 @@ -46,7 +64,11 @@ jobs: - name: Install dependencies (va-mobile-app) working-directory: va-mobile-app/VAMobile - run: yarn install + run: yarn install && cd ../../ && pwd + + - name: Check Directories + working-directory: va-mobile-app + run: yarn install && cd ../ && pwd - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ From 7cef463d93020ffd43665ccae3b544df49ea9a59 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 09:19:53 -0400 Subject: [PATCH 25/33] Run workflow --- .github/workflows/build-va-mobile-app.yml | 52 ++++++----------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index cf5d5bea..9fa763e1 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -7,41 +7,24 @@ name: 'Test Build: va-mobile-app' on: push jobs: - setup-mobile-library: + check-integration: + name: Check component integrations runs-on: ubuntu-latest steps: - # - name: Checkout va-mobile-library - # id: clone-lib - # uses: actions/checkout@v4 - # # with: - # # path: va-mobile-library - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'yarn' - - # - name: Install global dependencies (va-mobile-library) - # run: yarn install --immutable - - # - name: Install token dependencies (va-mobile-library) - # working-directory: packages/tokens - # run: yarn install --immutable - - # - name: Install component dependencies (va-mobile-library) - # working-directory: packages/components - # run: yarn install --immutable - - setup-mobile-app: - runs-on: ubuntu-latest - steps: - - name: Checkout va-mobile-library + - 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 global dependencies (va-mobile-library) working-directory: va-mobile-library run: yarn install --immutable @@ -54,21 +37,13 @@ jobs: working-directory: va-mobile-library/packages/components run: yarn install --immutable - - 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-app) working-directory: va-mobile-app/VAMobile - run: yarn install && cd ../../ && pwd + run: yarn install - name: Check Directories working-directory: va-mobile-app - run: yarn install && cd ../ && pwd + run: cd ../ && pwd && ls -l - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ @@ -77,4 +52,3 @@ jobs: - name: Run Unit Tests (va-mobile-app) working-directory: va-mobile-app/VAMobile/ run: yarn test --testTimeout=30000 - From c347289d7ce19c40134f3f853eb667c931c83e39 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 11:14:18 -0400 Subject: [PATCH 26/33] Breaking CI on purpose --- .github/workflows/build-va-mobile-app.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 9fa763e1..2c4237fb 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -2,13 +2,12 @@ # Code checks – linting and unit tests # -name: 'Test Build: va-mobile-app' +name: 'Check Component Integrations' on: push jobs: check-integration: - name: Check component integrations runs-on: ubuntu-latest steps: - name: Checkout (va-mobile-library) @@ -41,9 +40,9 @@ jobs: working-directory: va-mobile-app/VAMobile run: yarn install - - name: Check Directories + - name: Install local component library working-directory: va-mobile-app - run: cd ../ && pwd && ls -l + run: yarn add file:../va-mobile-app/packages/componentsers - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ From 634b0adc258be42ba51153e2549c2528b26dd4c1 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 11:18:00 -0400 Subject: [PATCH 27/33] Breaking CI on purpose --- .github/workflows/build-va-mobile-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 2c4237fb..61274576 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -42,7 +42,7 @@ jobs: - name: Install local component library working-directory: va-mobile-app - run: yarn add file:../va-mobile-app/packages/componentsers + run: yarn add file:../va-mobile-app/packages/componentsert - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ From 1d3a45feb9d99848a64c0c8cf0d1a87b11a820c3 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 11:18:46 -0400 Subject: [PATCH 28/33] push change --- .github/workflows/build-va-mobile-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 61274576..06f9c90d 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -42,7 +42,7 @@ jobs: - name: Install local component library working-directory: va-mobile-app - run: yarn add file:../va-mobile-app/packages/componentsert + run: yarn add file:../va-mobile-app/packages/components - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ From da7719c7d106ac35a34bb558b90aba24d05bfc03 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 11:26:17 -0400 Subject: [PATCH 29/33] push change --- .github/workflows/build-va-mobile-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/build-va-mobile-app.yml index 06f9c90d..d4607879 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/build-va-mobile-app.yml @@ -42,7 +42,7 @@ jobs: - name: Install local component library working-directory: va-mobile-app - run: yarn add file:../va-mobile-app/packages/components + run: yarn add file:../va-mobile-library/packages/components - name: Compile TypeScript (va-mobile-app) working-directory: va-mobile-app/VAMobile/ From 8fd4b4fbcb2d34804e4d4929546e00c8c1af8824 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 11:37:12 -0400 Subject: [PATCH 30/33] Use matrix --- ...p.yml => check-component-integrations.yml} | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) rename .github/workflows/{build-va-mobile-app.yml => check-component-integrations.yml} (61%) diff --git a/.github/workflows/build-va-mobile-app.yml b/.github/workflows/check-component-integrations.yml similarity index 61% rename from .github/workflows/build-va-mobile-app.yml rename to .github/workflows/check-component-integrations.yml index d4607879..1bec337a 100644 --- a/.github/workflows/build-va-mobile-app.yml +++ b/.github/workflows/check-component-integrations.yml @@ -4,11 +4,24 @@ name: 'Check Component Integrations' -on: push +on: + push: + # branches: + # - main jobs: check-integration: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + directory: [ + va-mobile-library, + va-mobile-library/packages/tokens, + va-mobile-library/packages/components + ] + steps: - name: Checkout (va-mobile-library) id: clone-lib @@ -24,17 +37,17 @@ jobs: ref: 'develop' path: va-mobile-app - - name: Install global dependencies (va-mobile-library) - working-directory: va-mobile-library + - name: Install dependencies (${{ matrix.directory }}) + working-directory: ${{ matrix.directory }} run: yarn install --immutable - - name: Install token dependencies (va-mobile-library) - working-directory: va-mobile-library/packages/tokens - 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 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 From e088b21f8b786d9945ce4343ada88b31c36f1595 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 11:39:19 -0400 Subject: [PATCH 31/33] Use matrix --- .../check-component-integrations.yml | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.github/workflows/check-component-integrations.yml b/.github/workflows/check-component-integrations.yml index 1bec337a..30e94f13 100644 --- a/.github/workflows/check-component-integrations.yml +++ b/.github/workflows/check-component-integrations.yml @@ -13,15 +13,6 @@ jobs: check-integration: runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - directory: [ - va-mobile-library, - va-mobile-library/packages/tokens, - va-mobile-library/packages/components - ] - steps: - name: Checkout (va-mobile-library) id: clone-lib @@ -37,17 +28,17 @@ jobs: ref: 'develop' path: va-mobile-app - - name: Install dependencies (${{ matrix.directory }}) - working-directory: ${{ matrix.directory }} + - 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 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 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 @@ -58,9 +49,9 @@ jobs: run: yarn add file:../va-mobile-library/packages/components - name: Compile TypeScript (va-mobile-app) - working-directory: va-mobile-app/VAMobile/ + working-directory: va-mobile-app/VAMobile run: yarn tsc:compile - name: Run Unit Tests (va-mobile-app) - working-directory: va-mobile-app/VAMobile/ + working-directory: va-mobile-app/VAMobile run: yarn test --testTimeout=30000 From 77dad8cf6582d3d0548f97d8f769f69b1310579f Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 12:08:20 -0400 Subject: [PATCH 32/33] Update to run on merge into main --- .github/workflows/check-component-integrations.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-component-integrations.yml b/.github/workflows/check-component-integrations.yml index 30e94f13..214e5de5 100644 --- a/.github/workflows/check-component-integrations.yml +++ b/.github/workflows/check-component-integrations.yml @@ -6,11 +6,11 @@ name: 'Check Component Integrations' on: push: - # branches: - # - main + branches: + - main jobs: - check-integration: + check-integrations: runs-on: ubuntu-latest steps: From 0b5358d7966432af34830e62e6b545e613129d58 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 4 Oct 2023 12:18:56 -0400 Subject: [PATCH 33/33] Updated comment --- .github/workflows/check-component-integrations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-component-integrations.yml b/.github/workflows/check-component-integrations.yml index 214e5de5..ecb38ed4 100644 --- a/.github/workflows/check-component-integrations.yml +++ b/.github/workflows/check-component-integrations.yml @@ -1,5 +1,5 @@ # -# Code checks – linting and unit tests +# Checking instances where we're integrating with apps # name: 'Check Component Integrations'