@@ -3,6 +3,7 @@ name: L10N Test Execution
3
3
4
4
run-name : ${{ github.actor }} is running l10n tests
5
5
on :
6
+ pull_request :
6
7
workflow_call :
7
8
inputs :
8
9
channel :
37
38
38
39
jobs :
39
40
L10N-MacOS :
40
- if : ${{ inputs.job_to_run == 'L10N-MacOS' || inputs.mac_installer_link }}
41
+ if : ${{ inputs.job_to_run == 'L10N-MacOS' || github.event_name == 'pull_request' || inputs.mac_installer_link }}
41
42
runs-on : macos-latest
42
43
steps :
43
44
- name : Create app token
85
86
run : |
86
87
"$FX_EXECUTABLE" --version;
87
88
echo "0" > TEST_EXIT_CODE;
88
- pipenv run python check_l10n_test_cases .py;
89
+ pipenv run python choose_l10n_ci_set .py;
89
90
while IFS= read -r line; do
90
91
echo "Running tests for: $line";
91
92
pipenv run python -m l10n_CM.run_l10n --fx-executable="$FX_EXECUTABLE" $line || SCRIPT_EXIT_CODE=$?;
@@ -121,7 +122,7 @@ jobs:
121
122
name : artifacts-mac
122
123
path : artifacts-mac
123
124
L10N-Linux :
124
- if : ${{ inputs.job_to_run == 'L10N-Linux' || inputs.linux_tarball_link }}
125
+ if : ${{ inputs.job_to_run == 'L10N-Linux' || github.event_name == 'pull_request' || inputs.linux_tarball_link }}
125
126
runs-on : ubuntu-latest
126
127
steps :
127
128
- name : Create app token
@@ -166,7 +167,7 @@ jobs:
166
167
run : |
167
168
"$FX_EXECUTABLE" --version;
168
169
echo "0" > TEST_EXIT_CODE;
169
- pipenv run python check_l10n_test_cases .py;
170
+ pipenv run python choose_l10n_ci_set .py;
170
171
Xvfb :99 -screen 0 '1600x1200x24' > artifacts/xvfb.log &
171
172
while IFS= read -r line; do
172
173
echo "Running tests for: $line";
@@ -203,7 +204,7 @@ jobs:
203
204
name : artifacts-linux
204
205
path : artifacts-linux
205
206
L10N-Windows :
206
- if : ${{ inputs.job_to_run == 'L10N-Windows' || inputs.win_installer_link }}
207
+ if : ${{ inputs.job_to_run == 'L10N-Windows' || github.event_name == 'pull_request' || inputs.win_installer_link }}
207
208
runs-on : windows-latest
208
209
steps :
209
210
- name : Create app token
@@ -277,7 +278,7 @@ jobs:
277
278
pipenv run python -c "import sys; print(sys.platform)"
278
279
$env:FX_EXECUTABLE = 'C:\Program Files\Custom Firefox\firefox.exe'
279
280
Start-Process -FilePath $env:FX_EXECUTABLE -ArgumentList "--version" -Wait -NoNewWindow
280
- pipenv run python check_l10n_test_cases .py
281
+ pipenv run python choose_l10n_ci_set .py
281
282
"0" | Set-Content -Path "TEST_EXIT_CODE"
282
283
$SCRIPT_EXIT_CODE = 0
283
284
Get-Content "selected_l10n_mappings" | ForEach-Object {
@@ -304,7 +305,7 @@ jobs:
304
305
mv ./ci_l10n_pyproject_headed.toml ./pyproject.toml;
305
306
$env:FX_EXECUTABLE = 'C:\Program Files\Custom Firefox\firefox.exe'
306
307
Write-Host "FX_EXECUTABLE: $FX_EXECUTABLE"
307
- pipenv run python check_l10n_test_cases .py
308
+ pipenv run python choose_l10n_ci_set .py
308
309
"0" | Set-Content -Path "TEST_EXIT_CODE"
309
310
$SCRIPT_EXIT_CODE = 0
310
311
Get-Content "selected_l10n_mappings" | ForEach-Object {
0 commit comments