Skip to content

Commit e468e7a

Browse files
Merge pull request #9 from gitautoai/gitauto-wes/issue-8-20250213-161015
GitAuto: Add a GitHub Actions workflow to automatically conduct flutter test
2 parents 828cd47 + 6930ed6 commit e468e7a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/flutter_test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Flutter Test
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Install Flutter
18+
uses: subosito/flutter-action@v2
19+
with:
20+
flutter-version: '3.7.0'
21+
- name: Run Flutter Tests
22+
run: flutter test

test/dummy_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:flutter_test/flutter_test.dart';
2+
3+
void main() {
4+
test('dummy test', () { expect(true, true); });
5+
}

0 commit comments

Comments
 (0)