Skip to content

Commit 5cd4149

Browse files
committed
Run tests on linux and generate goldens in a docker container
1 parent bf7d0eb commit 5cd4149

27 files changed

+67
-66
lines changed

.github/workflows/analyze-and-test.yaml renamed to .github/workflows/analyze.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
flutter: ['stable']
14-
runs-on: macos-latest
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: subosito/flutter-action@v1
@@ -22,9 +22,6 @@ jobs:
2222
- run: flutter pub get
2323
working-directory: example
2424
- run: flutter analyze
25-
- run: flutter test test # https://github.com/flutter/flutter/issues/20907
26-
- run: flutter test test
27-
working-directory: example
2825
- run: flutter pub run tool/prepare_submit.dart
2926
- name: "check for uncommitted changes"
3027
run: |

.github/workflows/test.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lottie Flutter
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
name: Run all tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Run tests
15+
uses: docker://cirrusci/flutter:1.22.1
16+
with:
17+
args: sh run_tests.sh

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
## Run the Golden tests
3+
Run and update the golden tests requires Docker installed.
4+
5+
```shell script
6+
sh update_goldens.sh
7+
```

example/pubspec.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: archive
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.0.13"
10+
version: "2.0.11"
1111
args:
1212
dependency: transitive
1313
description:
1414
name: args
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.6.0"
17+
version: "1.5.2"
1818
async:
1919
dependency: transitive
2020
description:
@@ -70,7 +70,7 @@ packages:
7070
name: crypto
7171
url: "https://pub.dartlang.org"
7272
source: hosted
73-
version: "2.1.5"
73+
version: "2.1.3"
7474
fake_async:
7575
dependency: transitive
7676
description:
@@ -213,7 +213,7 @@ packages:
213213
name: pedantic
214214
url: "https://pub.dartlang.org"
215215
source: hosted
216-
version: "1.9.2"
216+
version: "1.8.0+1"
217217
platform:
218218
dependency: transitive
219219
description:
@@ -309,7 +309,7 @@ packages:
309309
name: xdg_directories
310310
url: "https://pub.dartlang.org"
311311
source: hosted
312-
version: "0.1.2"
312+
version: "0.1.0"
313313
sdks:
314314
dart: ">=2.10.0-110 <2.11.0"
315315
flutter: ">=1.12.13+hotfix.5 <2.0.0"
-117 Bytes
Loading
71 Bytes
Loading
-32 Bytes
Loading
-9 Bytes
Loading
-681 Bytes
Loading
3.36 KB
Loading

0 commit comments

Comments
 (0)