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
10 changes: 7 additions & 3 deletions .github/workflows/add-release-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Get the next semver version
id: get-next-semver-version
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/bitrise-e2e-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Check Bitrise E2E Gate
env:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/build-android-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,18 @@ jobs:
restore-keys: |
gradle-${{ runner.os }}-

- name: Setup project dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: |
echo "🚀 Setting up project..."
yarn setup:github-ci --no-build-ios

- name: Build Android E2E APKs
run: |
echo "🚀 Setting up project..."
yarn setup:github-ci --no-build-ios

echo "🏗 Building Android E2E APKs..."
export NODE_OPTIONS="--max-old-space-size=8192"
cp android/gradle.properties.github android/gradle.properties
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/build-ios-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,20 @@ jobs:
- name: Clean iOS plist files
run: find ios -name "*.plist" -exec xattr -c {} \;

# Run project setup and build the iOS E2E app for simulator
# Run project setup with retry for better resilience
- name: Setup project dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: |
echo "🚀 Setting up project..."
yarn setup:github-ci --build-ios --no-build-android

# Build the iOS E2E app for simulator
- name: Build iOS E2E App
run: |
echo "🚀 Setting up project..."
yarn setup:github-ci --build-ios --no-build-android
echo "🏗 Building iOS E2E App..."
export NODE_OPTIONS="--max-old-space-size=8192"
yarn build:ios:main:e2e
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/check-attributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies from cache
run: yarn --immutable
- name: Install dependencies from cache with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn --immutable
- name: Check attributions changes
run: yarn test:attribution-check
10 changes: 7 additions & 3 deletions .github/workflows/check-pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Check PR has required labels
id: check-pr-has-required-labels
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/check-template-and-add-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Check template and add labels
id: check-template-and-add-labels
Expand Down
75 changes: 63 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ jobs:
ruby-version: '3.1.6'
env:
BUNDLE_GEMFILE: ios/Gemfile
- run: yarn setup
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup
- name: Require clean working directory
shell: bash
run: |
Expand All @@ -46,9 +52,20 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn setup --node
- name: Deduplicate dependencies
run: yarn deduplicate
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup --node
- name: Deduplicate dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn deduplicate
- name: Print error if duplicates found
shell: bash
run: |
Expand All @@ -64,9 +81,20 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn setup --node
- name: Run @lavamoat/git-safe-dependencies
run: yarn git-safe-dependencies
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup --node
- name: Run @lavamoat/git-safe-dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn git-safe-dependencies
scripts:
runs-on: ubuntu-latest
strategy:
Expand All @@ -86,7 +114,13 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn setup --node
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup --node
- run: yarn ${{ matrix['scripts'] }}
- name: Require clean working directory
shell: bash
Expand All @@ -108,7 +142,13 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn setup --node
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup --node
# The "10" in this command is the total number of shards. It must be kept
# in sync with the length of matrix.shard
- run: yarn test:unit --shard=${{ matrix.shard }}/10 --forceExit --silent --coverageReporters=json
Expand Down Expand Up @@ -141,7 +181,13 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn setup --node
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup --node
- uses: actions/download-artifact@v4
with:
path: tests/coverage/
Expand Down Expand Up @@ -197,8 +243,13 @@ jobs:
with:
node-version-file: '.nvmrc'
cache: yarn
- name: Install dependencies
run: yarn setup --no-build-android
- name: Install Yarn dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn setup --no-build-android

- name: Generate iOS bundle
run: yarn gen-bundle:ios
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/close-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Close release bug report issue
id: close-release-bug-report-issue
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/create-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
- name: Install dependencies with retry
if: steps.extract_version.outputs.version
run: yarn --immutable
working-directory: '.github/scripts'
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Create bug report issue on planning repo
if: steps.extract_version.outputs.version
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/fitness-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Run fitness functions
env:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/run-bitrise-e2e-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Check Bitrise E2E Status
env:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/run-bitrise-flask-e2e-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ jobs:
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: yarn --immutable
working-directory: '.github/scripts'
- name: Install dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: cd .github/scripts && yarn --immutable

- name: Check Bitrise Flask E2E Status
env:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/run-e2e-api-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,23 @@ jobs:
corepack enable
corepack prepare yarn@1.22.22 --activate

- name: Install JavaScript dependencies
run: yarn install --frozen-lockfile
- name: Install JavaScript dependencies with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
env:
NODE_OPTIONS: --max-old-space-size=4096
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn install --frozen-lockfile

- name: Install Detox CLI
run: yarn global add detox-cli
- name: Install Detox CLI with retry
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 #v3.0.2
with:
timeout_minutes: 10
max_attempts: 3
retry_wait_seconds: 30
command: yarn global add detox-cli

- name: Setup Xcode
run: sudo xcode-select -s /Applications/Xcode_16.2.app
Expand Down
Loading
Loading