Skip to content

Commit

Permalink
ci: add action to check if generated files is up to date (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon authored Apr 3, 2024
1 parent d4b1367 commit e956d0d
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,21 @@ jobs:
dart run script/sort_yaml.dart $file
cmp $file $file.copy
done
check-build-diff:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Run build_runner
run: dart run build_runner build -d

- name: Check diff
run: git diff --exit-code
2 changes: 2 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ targets:
generate_for:
include:
- lib/**/*.dart
exclude:
- lib/**/*.g.dart
options:
explicit_to_json: true
include_if_null: false
1 change: 0 additions & 1 deletion lib/i18n/misskeyIO/misskeyIO_ja-KS.i18n.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions lib/i18n/misskeyIO/misskeyIO_ja-KS.i18n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Source: https://github.com/MisskeyIO/misskey/blob/io/locales/ja-JP.yml

skebStatus_:
genres_:
art: "イラスト"
comic: "コミック"
voice: "ボイス"
novel: "テキスト"
video: "ムービー"
music: "ミュージック"
correction: "アドバイス"
seeking: "募集中"
stopped: "停止中"
client: "クライアント"
yenX: "{x}円"
nWorks: "納品実績 {n}件"
nRequests: "取引実績 {n}件"
1 change: 0 additions & 1 deletion lib/i18n/misskeyIO/misskeyIO_ko-GS.i18n.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions lib/i18n/misskeyIO/misskeyIO_ko-GS.i18n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Source: https://github.com/MisskeyIO/misskey/blob/io/locales/ko-KR.yml

skebStatus_:
genres_:
art: "작품"
comic: "만화"
voice: "음성"
novel: "텍스트"
video: "동영상"
music: "음악"
correction: "조언"
seeking: "모집 중"
stopped: "정지 중"
client: "클라이언트"
yenX: "JPY {x}"
nWorks: "납품 실적 {n}건"
nRequests: "거래 실적 {n}건"
2 changes: 1 addition & 1 deletion lib/provider/api/post_notifier_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1599,10 +1599,11 @@ packages:
slang:
dependency: "direct main"
description:
name: slang
sha256: ad2a3974fa705017d40e59f9fce5ba738ce78a40c13247bf655d1760d3af018f
url: "https://pub.dev"
source: hosted
path: slang
ref: "0a7d041dab66e22b7349ef4a89e3156cbf203910"
resolved-ref: "0a7d041dab66e22b7349ef4a89e3156cbf203910"
url: "https://github.com/poppingmoon/slang"
source: git
version: "3.30.2"
slang_build_runner:
dependency: "direct dev"
Expand Down
7 changes: 7 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ dev_dependencies:
slang_build_runner: ^3.30.0
yaml: ^3.1.2

dependency_overrides:
slang:
git:
url: https://github.com/poppingmoon/slang
ref: 0a7d041dab66e22b7349ef4a89e3156cbf203910
path: slang

flutter:
uses-material-design: true
assets:
Expand Down

0 comments on commit e956d0d

Please sign in to comment.