Skip to content

Commit 8887ecf

Browse files
committed
use flutter action with cache
1 parent 83f5885 commit 8887ecf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
container:
15-
image: ghcr.io/cirruslabs/flutter:3.35.5
1614

1715
steps:
1816
- name: Checkout OneSignal-Flutter-SDK
1917
uses: actions/checkout@v5
2018

19+
- name: Set up Flutter
20+
uses: subosito/flutter-action@v2
21+
with:
22+
channel: stable
23+
flutter-version: 3.35.5
24+
cache: true
25+
2126
- name: Install
2227
run: flutter pub get
2328

2429
- name: Static Analysis
2530
run: flutter analyze
2631

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

3335
- name: Run Flutter unit tests
34-
run: rps test
36+
run: dart runrps test

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ dev_dependencies:
2727
rps: ^0.9.1
2828

2929
environment:
30-
sdk: ">=2.12.0 <3.0.0"
31-
flutter: ">=1.10.0"
30+
sdk: ">=3.0.0 <4.0.0"
31+
flutter: ">=3.0.0"

0 commit comments

Comments
 (0)