File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - " main"
77 tags :
88 - " *"
9+ pull_request :
10+ paths :
11+ - .github/workflows/build-image.yml
12+ - Dockerfile
913jobs :
1014 build-image :
1115 runs-on : ubuntu-latest
3034 with :
3135 context : .
3236 platforms : linux/amd64,linux/arm64
33- push : true
37+ push : ${{ github.event_name != 'pull_request' }}
3438 tags : ${{ steps.meta.outputs.tags }}
3539 cache-from : type=registry,ref=tootsuite/mastodon:latest
3640 cache-to : type=inline
Original file line number Diff line number Diff line change 1+ name : Check i18n
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ env :
10+ RAILS_ENV : test
11+
12+ jobs :
13+ check-i18n :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Install system dependencies
19+ run : |
20+ sudo apt-get update
21+ sudo apt-get install -y libicu-dev libidn11-dev
22+ - name : Set up Ruby
23+ uses : ruby/setup-ruby@v1
24+ with :
25+ ruby-version : ' 3.0'
26+ bundler-cache : true
27+ - name : Check locale file normalization
28+ run : bundle exec i18n-tasks check-normalized
29+ - name : Check for unused strings
30+ run : bundle exec i18n-tasks unused -l en
31+ - name : Check for wrong string interpolations
32+ run : bundle exec i18n-tasks check-consistent-interpolations
33+ - name : Check that all required locale files exist
34+ run : bundle exec rake repo:check_locales_files
You can’t perform that action at this time.
0 commit comments