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
22 changes: 22 additions & 0 deletions .buildkite/commands/test-localization-tooling.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash -eu

# Runs the localization tooling's pure-Ruby unit suites (stdlib minitest — no Xcode, no app build, no bundle).
# Intentionally always runs (no should-skip-job guard): these guard the fastlane localization helpers, and the
# `validation` skip rule skips on tooling-only changes — exactly when these tests matter most.

echo "--- :test_tube: Localization tooling unit tests"

shopt -s nullglob
tests=(fastlane/lanes/*_test.rb)
if [[ ${#tests[@]} -eq 0 ]]; then
echo "No *_test.rb files found under fastlane/lanes/."
exit 0
fi

status=0
for test in "${tests[@]}"; do
echo "+++ :ruby: ${test}"
ruby "${test}" || status=1
done

exit "${status}"
7 changes: 7 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ steps:
- github_commit_status:
context: "Verify String Catalog Coverage"

- label: ":test_tube: Localization Tooling Unit Tests"
command: .buildkite/commands/test-localization-tooling.sh
plugins: [$CI_TOOLKIT_PLUGIN]
notify:
- github_commit_status:
context: "Localization Tooling Unit Tests"

#################
# Claude Build Analysis - dynamically uploaded so Build result conditions evaluate at runtime after the wait
#################
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

source 'https://rubygems.org'

# Official Anthropic SDK — backs the AI translation tier of the localization pipeline (fastlane/lanes/ai_translator.rb).
gem 'anthropic', '~> 1.50'
gem 'danger-dangermattic', '~> 1.3'
gem 'dotenv'
# 2.223.1 includes a fix for an ASC-interfacing issue
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ GEM
abbrev (0.1.2)
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
anthropic (1.50.0)
cgi
connection_pool
standardwebhooks
artifactory (3.0.17)
ast (2.4.3)
atomos (0.1.3)
Expand Down Expand Up @@ -33,6 +37,7 @@ GEM
bigdecimal (4.1.2)
buildkit (1.6.1)
sawyer (>= 0.6)
cgi (0.5.2)
chroma (0.2.0)
claide (1.1.0)
claide-plugins (0.9.2)
Expand All @@ -43,6 +48,7 @@ GEM
colored2 (3.1.2)
commander (4.6.0)
highline (~> 2.0.0)
connection_pool (3.0.2)
cork (0.3.0)
colored2 (~> 3.1)
csv (3.3.5)
Expand Down Expand Up @@ -348,6 +354,7 @@ GEM
CFPropertyList
naturally
singleton (0.3.0)
standardwebhooks (1.0.1)
terminal-notifier (2.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
Expand Down Expand Up @@ -376,6 +383,7 @@ PLATFORMS
ruby

DEPENDENCIES
anthropic (~> 1.50)
danger-dangermattic (~> 1.3)
dotenv
fastlane (~> 2.236)
Expand Down
397 changes: 397 additions & 0 deletions fastlane/lanes/ai_translator.rb

Large diffs are not rendered by default.

Loading