Skip to content

Commit 32c976c

Browse files
Add a no-op widget test and a yml file to start. Cynthia should be following up with the real test soon.
1 parent 34b59c4 commit 32c976c

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run CI tests
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened, synchronize]
7+
paths:
8+
- "firestore/**"
9+
push:
10+
paths-ignore:
11+
- "**.md"
12+
13+
jobs:
14+
unit_tests:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 5
17+
steps:
18+
- name: "checkout"
19+
uses: actions/checkout@v2
20+
- name: "install flutter"
21+
uses: subosito/flutter-action@v2
22+
- name: "Run widget tests"
23+
working-directory: firestore
24+
run: flutter test

firestore/test/widget_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:flutter_test/flutter_test.dart';
3+
4+
void main() {
5+
testWidgets('Test fails', (WidgetTester tester) async {
6+
// autopass
7+
});
8+
}

0 commit comments

Comments
 (0)