-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.3 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Lint cupcake
run-name: Check if the code is properly formatted
on: [push]
jobs:
format:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Flutter pub get
run: |
flutter pub get
- name: Format
run: ./.tooling/format.sh
- name: check if git tree is clean
run: |
if [ -z "$(git status --porcelain)" ]; then
exit 0
else
git status --porcelain
exit 1
fi
- name: check if there are missing translations
continue-on-error: true
run: |
if [[ "$(cat missing_translations.txt)" == "{}" ]];
then
exit 0
else
echo "There are missing translations:"
cat missing_translations.txt
exit 1
fi