Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Oct 8, 2024
1 parent b8ce25b commit 485029b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint cupcake
run-name: Check if the code is properly formatted
on: [push]

jobs:
moneroc_android:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Format
run: ./format.sh
- name: check if git tree is clean
run: |
if [ -z "$(git status --porcelain)" ]; then
exit 0
else
exit 1
fi
- name: check if there are missing translations
run: [[ -f missing_translations.txt ]] && exit 1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ app.*.map.json

lib/l10n/*.dart
lib/gen/*.dart
missing_translations.txt
4 changes: 3 additions & 1 deletion format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ do
dart format .
popd
dart format main.dart
done
done

flutter gen-l10n
1 change: 1 addition & 0 deletions l10n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
synthetic-package: false
untranslated-messages-file: missing_translations.txt

0 comments on commit 485029b

Please sign in to comment.