Skip to content

Commit 602c384

Browse files
committed
change flutter ci to use rps
1 parent b743ba1 commit 602c384

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- ".github/**"
88
- ".vscode/**"
99
- "README.md"
10-
workflow_dispatch:
1110

1211
jobs:
1312
build:
@@ -19,14 +18,17 @@ jobs:
1918
- name: Checkout OneSignal-Flutter-SDK
2019
uses: actions/checkout@v5
2120

22-
- name: Install Dependencies 🔗⛓📦
21+
- name: Install
2322
run: flutter pub get
2423

2524
- name: Static Analysis
2625
run: flutter analyze
2726

27+
- name: Activate rps
28+
run: dart pub global activate rps
29+
2830
- name: Ensure the Dart code is formatted correctly
2931
run: dart format --set-exit-if-changed --output=none .
3032

3133
- name: Run Flutter unit tests
32-
run: flutter test
34+
run: rps test

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 5.3.4
44
homepage: https://github.com/OneSignal/OneSignal-Flutter-SDK
55

66
scripts:
7-
test: dlcov -c 80 --lcov-gen="flutter test --coverage" --include-untested-files=true
7+
test: flutter test --coverage && dlcov -c 80 --log=0 --include-untested-files=true
88

99
flutter:
1010
plugin:

0 commit comments

Comments
 (0)