Skip to content

Commit 5529fa0

Browse files
committed
chore(flutter): add workflow to run analyze and test
1 parent a55bd2b commit 5529fa0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/SDK/Language/Flutter.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ public function getFiles(): array
345345
'destination' => '.github/workflows/format.yml',
346346
'template' => 'flutter/.github/workflows/format.yml.twig',
347347
],
348+
[
349+
'scope' => 'default',
350+
'destination' => '.github/workflows/test.yml',
351+
'template' => 'flutter/.github/workflows/test.yml',
352+
],
348353
[
349354
'scope' => 'enum',
350355
'destination' => 'lib/src/enums/{{ enum.name | caseSnake }}.dart',
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Analyze and test
2+
3+
on: pull_request
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Install Flutter
11+
uses: subosito/flutter-action@v2
12+
with:
13+
channel: stable
14+
- run: flutter pub get
15+
- run: flutter analyze --no-fatal-infos --no-fatal-warnings
16+
- run: flutter test

0 commit comments

Comments
 (0)