From 10150898e774c3e03693396a3a806a58c1a77fdb Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Tue, 12 Dec 2023 20:32:55 -0500 Subject: [PATCH] test(ci): use node v18, JDK17, xcode-latest, macos-12 in CI more modern toolchains - only avoiding macos-13+xcode-15 because the iOS performance is so terrible there that means we still rely on using the named iOS simulator "iPhone 14", which does not exist by default on fresh Xcode 15 installs, but you may create the Simulator definition easily, and it's still more modern than previous iPhone 12 --- .github/workflows/linting.yml | 6 +++--- .github/workflows/tests_e2e_android.yml | 16 +++++----------- .github/workflows/tests_e2e_ios.yml | 8 ++++---- .github/workflows/tests_jest.yml | 2 +- .github/workflows/tests_junit.yml | 14 ++++---------- package.json | 2 +- 6 files changed, 18 insertions(+), 30 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 033e8fe8d..06d83cd7b 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -20,7 +20,7 @@ jobs: submodules: recursive - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" @@ -54,7 +54,7 @@ jobs: submodules: recursive - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" @@ -88,7 +88,7 @@ jobs: submodules: recursive - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" diff --git a/.github/workflows/tests_e2e_android.yml b/.github/workflows/tests_e2e_android.yml index 90b425714..e91799809 100644 --- a/.github/workflows/tests_e2e_android.yml +++ b/.github/workflows/tests_e2e_android.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 18 # Set path variables needed for caches - name: Set workflow variables @@ -83,17 +83,11 @@ jobs: max_attempts: 4 command: yarn --no-audit --prefer-offline && npm i -g cavy-cli - - name: Configure JDK 1.11 - uses: actions/setup-java@v2 + - name: Configure JDK + uses: actions/setup-java@v4 with: - distribution: 'adopt' - java-version: '11' # ubuntu-latest is about to default to 11, force it everywhere - - - name: Verify JDK11 - # Default JDK varies depending on different runner flavors, make sure we are on 11 - # Run a check that exits with error unless it is 11 version to future-proof against unexpected upgrades - run: java -fullversion 2>&1 | grep '11.0' - shell: bash + distribution: 'temurin' + java-version: '17' - name: Build Android App uses: nick-invision/retry@v2 diff --git a/.github/workflows/tests_e2e_ios.yml b/.github/workflows/tests_e2e_ios.yml index dbf44d4e7..800ea0f6e 100644 --- a/.github/workflows/tests_e2e_ios.yml +++ b/.github/workflows/tests_e2e_ios.yml @@ -16,7 +16,7 @@ on: jobs: ios: name: iOS - runs-on: macos-11 + runs-on: macos-latest # TODO matrix across APIs, at least 10 and 13 (lowest to highest) timeout-minutes: 60 env: @@ -30,16 +30,16 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 18 - uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: '13.0' + xcode-version: 'latest-stable' - name: Start Simulator # The first time you try to `yarn run:ios` after xcode-select, it fails, so get it out of the way... continue-on-error: true - run: xcrun simctl boot "iPhone 12" + run: xcrun simctl boot "iPhone 14" # Set path variables needed for caches - name: Set workflow variables diff --git a/.github/workflows/tests_jest.yml b/.github/workflows/tests_jest.yml index 47035f3e2..283791dfc 100644 --- a/.github/workflows/tests_jest.yml +++ b/.github/workflows/tests_jest.yml @@ -28,7 +28,7 @@ jobs: submodules: recursive - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" diff --git a/.github/workflows/tests_junit.yml b/.github/workflows/tests_junit.yml index 93b66ce5d..e22a190ff 100644 --- a/.github/workflows/tests_junit.yml +++ b/.github/workflows/tests_junit.yml @@ -25,17 +25,11 @@ jobs: with: fetch-depth: 50 - - name: Configure JDK 1.11 - uses: actions/setup-java@v2 + - name: Configure JDK + uses: actions/setup-java@v4 with: - distribution: 'adopt' - java-version: '11' # ubuntu-latest is about to default to 11, force it everywhere - - - name: Verify JDK11 - # Default JDK varies depending on different runner flavors, make sure we are on 11 - # Run a check that exits with error unless it is 11 version to future-proof against unexpected upgrades - run: java -fullversion 2>&1 | grep '11.0' - shell: bash + distribution: 'temurin' + java-version: '17' - name: Gradle Cache uses: actions/cache@v2 diff --git a/package.json b/package.json index b1a5468a6..9c1d71efb 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "tests_rn:packager": "cd tests_react_native && npx react-native start", "tests_rn:packager:reset-cache": "cd tests_react_native && npx react-native start --reset-cache", "run:android": "cd tests_react_native && npx react-native run-android --variant 'debug'", - "run:ios": "cd tests_react_native && npx react-native run-ios --scheme=Notifee --simulator 'iPhone 15'", + "run:ios": "cd tests_react_native && npx react-native run-ios --scheme=Notifee --simulator 'iPhone 14'", "tests_rn:test": "cd tests_react_native && jest", "tests_rn:test-watch": "cd tests_react_native && jest --watch", "tests_rn:test-coverage": "cd tests_react_native && jest --coverage",