Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/create_test_patches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- uses: actions/cache/restore@v4
name: Yarn Cache Restore
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand Down Expand Up @@ -102,6 +103,7 @@ jobs:
- uses: actions/cache/save@v4
name: Yarn Cache Save
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- uses: actions/cache/restore@v4
name: Yarn Cache Restore
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -46,6 +47,7 @@ jobs:
- uses: actions/cache/save@v4
name: Yarn Cache Save
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
6 changes: 6 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- uses: actions/cache/restore@v4
name: Yarn Cache Restore
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -54,6 +55,7 @@ jobs:
- uses: actions/cache/save@v4
name: Yarn Cache Save
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -73,6 +75,7 @@ jobs:
- uses: actions/cache/restore@v4
name: Yarn Cache Restore
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -89,6 +92,7 @@ jobs:
- uses: actions/cache/save@v4
name: Yarn Cache Save
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -108,6 +112,7 @@ jobs:
- uses: actions/cache/restore@v4
name: Yarn Cache Restore
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-with-website-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -131,6 +136,7 @@ jobs:
- uses: actions/cache/save@v4
name: Yarn Cache Save
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-yarn-with-website-v1-${{ hashFiles('yarn.lock') }}
59 changes: 51 additions & 8 deletions .github/workflows/tests_e2e_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ jobs:
echo "metro-cache=$HOME/.metro" >> $GITHUB_OUTPUT
echo "tempdir=$TMPDIR" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Yarn Cache
- name: Yarn Cache Restore
uses: actions/cache/restore@v4
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-android-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand All @@ -158,18 +159,24 @@ jobs:
max_attempts: 3
command: DETOX_DISABLE_POSTINSTALL=1 yarn

- name: Cache Firestore Emulator
uses: actions/cache@v4
- name: Firestore Emulator Restore
uses: actions/cache/restore@v4
id: firestore-emulator-cache
continue-on-error: true
with:
# The firebase emulators are pure javascript and java, OS-independent
enableCrossOsArchive: true
path: ~/.cache/firebase/emulators
key: firebase-emulators-v1-${{ github.run_id }}
restore-keys: firebase-emulators-v1

- name: Start Firestore Emulator
run: yarn tests:emulator:start-ci

- uses: actions/cache@v4
name: Gradle Cache
- name: Gradle Cache Restore
uses: actions/cache/restore@v4
id: gradle-cache
continue-on-error: true
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-v1-${{ hashFiles('yarn.lock', 'tests/android/build.gradle', 'tests/android/app/build.gradle') }}
Expand All @@ -183,8 +190,10 @@ jobs:
max_attempts: 3
command: yarn tests:android:build

- name: Metro Bundler Cache
uses: actions/cache@v4
- name: Metro Bundler Cache Restore
uses: actions/cache/restore@v4
id: metro-bundler-cache
continue-on-error: true
with:
path: ${{ steps.workflow-variables.outputs.metro-cache }}
key: ${{ runner.os }}-metro-v1-${{ github.run_id }}
Expand Down Expand Up @@ -241,3 +250,37 @@ jobs:
with:
name: adb_logs_${{ matrix.api-level}}_${{ matrix.arch }}_${{ matrix.target }}_${{ matrix.iteration }}
path: adb-*.txt

- name: Yarn Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}

- name: Firestore Emulator Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
# The firebase emulators are pure javascript and java, OS-independent
enableCrossOsArchive: true
path: ~/.cache/firebase/emulators
key: ${{ steps.firestore-emulator-cache.outputs.cache-primary-key }}

- name: Gradle Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: ~/.gradle/caches
key: ${{ steps.gradle-cache.outputs.cache-primary-key }}

- name: Metro Bundler Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: ${{ steps.workflow-variables.outputs.metro-cache }}
key: ${{ steps.metro-bundler-cache.outputs.cache-primary-key }}
71 changes: 61 additions & 10 deletions .github/workflows/tests_e2e_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,19 @@ jobs:
echo "metro-cache=$HOME/.metro" >> $GITHUB_OUTPUT
echo "xcode-version=$(xcodebuild -version|tail -1|cut -f3 -d' ')" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Yarn Cache
- name: Yarn Cache Restore
uses: actions/cache/restore@v4
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-ios-yarn-v1-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.os }}-ios-yarn-v1

- uses: actions/cache@v4
name: Detox Framework Cache
- name: Detox Framework Cache Restore
uses: actions/cache/restore@v4
id: detox-cache
continue-on-error: true
with:
path: ~/Library/Detox/ios
key: ${{ runner.os }}-detox-framework-cache-${{ steps.workflow-variables.outputs.xcode-version }}
Expand Down Expand Up @@ -185,9 +187,10 @@ jobs:
max_attempts: 3
command: gem update cocoapods xcodeproj

- uses: actions/cache@v4
name: Cache Pods
- name: Pods Cache Restore
uses: actions/cache/restore@v4
id: pods-cache
continue-on-error: true
with:
path: tests/ios/Pods
key: ${{ runner.os }}-ios-pods-v3-${{ hashFiles('tests/ios/Podfile.lock') }}
Expand All @@ -201,9 +204,13 @@ jobs:
max_attempts: 3
command: yarn tests:ios:pod:install

- name: Cache Firestore Emulator
uses: actions/cache@v4
- name: Firestore Emulator Restore
uses: actions/cache/restore@v4
id: firestore-emulator-cache
continue-on-error: true
with:
# The firebase emulators are pure javascript and java, OS-independent
enableCrossOsArchive: true
path: ~/.cache/firebase/emulators
key: firebase-emulators-v1-${{ github.run_id }}
restore-keys: firebase-emulators-v1
Expand Down Expand Up @@ -254,8 +261,10 @@ jobs:
ccache -s
shell: bash

- name: Metro Bundler Cache
uses: actions/cache@v4
- name: Metro Bundler Cache Restore
uses: actions/cache/restore@v4
id: metro-bundler-cache
continue-on-error: true
with:
path: ${{ steps.workflow-variables.outputs.metro-cache }}
key: ${{ runner.os }}-ios-metro-v1-${{ github.run_id }}
Expand Down Expand Up @@ -344,3 +353,45 @@ jobs:
continue-on-error: true
with:
verbose: true

- name: Yarn Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}

- name: Detox Framework Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: ~/Library/Detox/ios
key: ${{ steps.detox-cache.outputs.cache-primary-key }}

- name: Pods Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: tests/ios/Pods
key: ${{ steps.pods-cache.outputs.cache-primary-key }}

- name: Firestore Emulator Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
# The firebase emulators are pure javascript and java, OS-independent
enableCrossOsArchive: true
path: ~/.cache/firebase/emulators
key: ${{ steps.firestore-emulator-cache.outputs.cache-primary-key }}

- name: Metro Bundler Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: ${{ steps.workflow-variables.outputs.metro-cache }}
key: ${{ steps.metro-bundler-cache.outputs.cache-primary-key }}
64 changes: 53 additions & 11 deletions .github/workflows/tests_e2e_other.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ jobs:
echo "metro-cache=$HOME/.metro" >> $GITHUB_OUTPUT
echo "xcode-version=$(xcodebuild -version|tail -1|cut -f3 -d' ')" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
name: Yarn Cache
- name: Yarn Cache Restore
uses: actions/cache/restore@v4
id: yarn-cache
continue-on-error: true
with:
path: .yarn/cache
key: ${{ runner.os }}-macos-yarn-v1-${{ hashFiles('yarn.lock') }}
Expand Down Expand Up @@ -171,13 +172,14 @@ jobs:
max_attempts: 3
command: gem update cocoapods xcodeproj

- uses: actions/cache@v4
name: Cache Pods
- name: Pods Cache Restore
uses: actions/cache/restore@v4
id: pods-cache
continue-on-error: true
with:
path: tests/macos/Pods
key: ${{ runner.os }}-macos-pods-v2-${{ hashFiles('tests/macos/Podfile.lock') }}
restore-keys: ${{ runner.os }}-macos-pods-v2
path: tests/ios/Pods
key: ${{ runner.os }}-macos-pods-v3-${{ hashFiles('tests/ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-macos-pods-v3

- name: Pod Install
uses: nick-fields/retry@v3
Expand All @@ -187,9 +189,13 @@ jobs:
max_attempts: 3
command: yarn tests:macos:pod:install

- name: Cache Firestore Emulator
uses: actions/cache@v4
- name: Firestore Emulator Cache Restore
uses: actions/cache/restore@v4
id: firestore-emulator-cache
continue-on-error: true
with:
# The firebase emulators are pure javascript and java, OS-independent
enableCrossOsArchive: true
path: ~/.cache/firebase/emulators
key: firebase-emulators-v1-${{ github.run_id }}
restore-keys: firebase-emulators-v1
Expand Down Expand Up @@ -217,8 +223,10 @@ jobs:
ccache -s
shell: bash

- name: Metro Bundler Cache
uses: actions/cache@v4
- name: Metro Bundler Cache Restore
uses: actions/cache/restore@v4
id: metro-bundler-cache
continue-on-error: true
with:
path: ${{ steps.workflow-variables.outputs.metro-cache }}
key: ${{ runner.os }}-macos-metro-v1-${{ github.run_id }}
Expand Down Expand Up @@ -281,3 +289,37 @@ jobs:
with:
name: syslog-${{ matrix.iteration }}
path: syslog.log

- name: Yarn Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: .yarn/cache
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}

- name: Pods Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: tests/ios/Pods
key: ${{ steps.pods-cache.outputs.cache-primary-key }}

- name: Firestore Emulator Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
# The firebase emulators are pure javascript and java, OS-independent
enableCrossOsArchive: true
path: ~/.cache/firebase/emulators
key: ${{ steps.firestore-emulator-cache.outputs.cache-primary-key }}

- name: Metro Bundler Cache Save
uses: actions/cache/save@v4
if: "${{ github.ref == 'refs/heads/main' }}"
continue-on-error: true
with:
path: ${{ steps.workflow-variables.outputs.metro-cache }}
key: ${{ steps.metro-bundler-cache.outputs.cache-primary-key }}
Loading
Loading