Skip to content

Commit b7fd0da

Browse files
committed
Add flutter format and other checks to CI workflow
1 parent 0323a14 commit b7fd0da

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/check.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Checks
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-24.04
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: REUSE Compliance Check
14+
uses: fsfe/reuse-action@v6
15+
16+
- uses: subosito/flutter-action@v2
17+
with:
18+
channel: 'stable'
19+
flutter-version: '3.38.1'
20+
21+
- name: Install dependencies
22+
run: flutter pub get
23+
24+
- name: Verify Dart formatting
25+
run: dart format --output=none --set-exit-if-changed .
26+
27+
- name: Analyze Dart project source
28+
run: flutter analyze

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Test
33
on: [pull_request]
44
jobs:
55
test:
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-24.04
77
steps:
88
- name: Prepare repository
99
uses: actions/checkout@v4
1010
- name: Install Flutter
1111
uses: subosito/flutter-action@v2
1212
with:
13-
flutter-version: '3.19.6'
13+
flutter-version: '3.38.1'
1414
channel: 'stable'
1515
- name: Setup | Rust
1616
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)