Skip to content

Commit bf9c570

Browse files
ykztsstsecurity
authored andcommitted
Remove protobuf dependencies (mastodon#17539)
1 parent 91ab776 commit bf9c570

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/build-image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- "main"
77
tags:
88
- "*"
9+
pull_request:
10+
paths:
11+
- .github/workflows/build-image.yml
12+
- Dockerfile
913
jobs:
1014
build-image:
1115
runs-on: ubuntu-latest
@@ -30,7 +34,7 @@ jobs:
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

.github/workflows/check-i18n.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

0 commit comments

Comments
 (0)