Skip to content

Commit e7a8e34

Browse files
committed
contrib: add check-flutter.sh script
1 parent e0a3b90 commit e7a8e34

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ jobs:
3535

3636
- name: Check
3737
run: bash contrib/scripts/check-crate.sh
38+
39+
check-flutter:
40+
name: Check flutter
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v3
45+
46+
- name: Install Flutter
47+
uses: subosito/flutter-action@v2
48+
49+
- name: Get Flutter deps
50+
run: flutter pub get
51+
52+
- name: Check
53+
run: bash contrib/scripts/check-flutter.sh

contrib/scripts/check-flutter.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6+
ROOT_DIR="${SCRIPT_DIR}/../../"
7+
8+
cd "${ROOT_DIR}"
9+
10+
flutter analyze

contrib/scripts/check.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66

77
"${DIR}/check-fmt.sh" check # Check if Rust code is formatted
88
"${DIR}/check-crate.sh" # Check crate
9+
"${DIR}/check-flutter.sh" # Check flutter

contrib/scripts/precommit.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66

77
"${DIR}/check-fmt.sh" # Format the code
88
"${DIR}/check-crate.sh" # Check crate
9+
"${DIR}/check-flutter.sh" # Check flutter

0 commit comments

Comments
 (0)