Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
3684e644
Unverified
Commit
3684e644
authored
4 years ago
by
Ariya Hidayat
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use GitHub Actions to run i18n checks (#15134)
parent
cdb10a6a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.circleci/config.yml
+0
-32
0 additions, 32 deletions
.circleci/config.yml
.github/workflows/i18n.yml
+42
-0
42 additions, 0 deletions
.github/workflows/i18n.yml
with
42 additions
and
32 deletions
.circleci/config.yml
+
0
−
32
View file @
3684e644
...
...
@@ -525,34 +525,6 @@ jobs:
paths
:
-
metabase/metabase
verify-i18n-files
:
executor
:
metabase-ci
steps
:
-
attach-workspace
-
create-checksum-file
:
filename
:
.I18N-CHECKSUMS
find-args
:
"
locales
-type
f
-name
'*.po'"
# In case the i18n scripts themselves change
-
create-checksum-file
:
filename
:
.I18N-SCRIPT-CHECKSUMS
find-args
:
"
bin/i18n
-type
f"
-
run-on-change
:
checksum
:
'
{{
checksum
".I18N-CHECKSUMS"
}}-{{
checksum
".I18N-SCRIPT-CHECKSUMS"
}}'
steps
:
-
restore-fe-deps-cache
-
run
:
name
:
Check i18n tags/make sure template can be built
# fix OOM when running -- see https://stackoverflow.com/a/59572966/1198455
# without this option, sometimes this step will fail with an OOM error.
environment
:
NODE_OPTIONS
:
'
--max-old-space-size=2048'
command
:
./bin/i18n/update-translation-template
no_output_timeout
:
2m
-
run
:
name
:
Verify i18n translations (.po files)
command
:
./bin/i18n/build-translation-resources
no_output_timeout
:
2m
check-migrations
:
executor
:
metabase-ci
...
...
@@ -983,10 +955,6 @@ workflows:
jobs
:
-
checkout
-
verify-i18n-files
:
requires
:
-
fe-deps
-
check-migrations
:
requires
:
-
checkout
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/i18n.yml
0 → 100644
+
42
−
0
View file @
3684e644
name
:
i18n
on
:
pull_request
:
push
:
branches
:
-
master
-
'
release**'
-
'
feature**'
tags
:
-
'
**'
paths
:
-
'
**.clj'
-
'
**.js'
-
'
**.jsx'
-
'
.github/workflows/**'
-
'
bin/**'
jobs
:
verify-i18n-files
:
runs-on
:
ubuntu-20.04
timeout-minutes
:
10
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Prepare Node.js
uses
:
actions/setup-node@v1
with
:
node-version
:
14.x
-
name
:
Get yarn cache
uses
:
actions/cache@v2
with
:
path
:
~/.cache/yarn
key
:
${{ runner.os }}-i18n-${{ hashFiles('**/yarn.lock') }}
-
run
:
yarn install --frozen-lockfile --prefer-offline
-
run
:
sudo apt install gettext
-
run
:
./bin/i18n/update-translation-template
name
:
Check i18n tags/make sure template can be built
-
run
:
./bin/i18n/build-translation-resources
name
:
Verify i18n translations (.po files)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment