Skip to content

Commit 46e178d

Browse files
feat: sdkサポートバージョンを引き下げして担保する為のciを作成
1 parent b7f2dbc commit 46e178d

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push: { branches: [ main ] }
4+
pull_request:
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
flutter: [ '3.24.0', 'stable' ] # 3.24.0 = Dart 3.5系, stable = 最新
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: subosito/flutter-action@v2
14+
with:
15+
flutter-version: ${{ matrix.flutter }}
16+
- run: flutter --version && dart --version
17+
- run: flutter pub get
18+
- run: dart analyze
19+
- run: flutter test
20+
- name: Example
21+
working-directory: example
22+
run: |
23+
flutter pub get
24+
dart analyze
25+
flutter test

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ topics:
1515
- api
1616

1717
environment:
18-
sdk: ">=3.8.0 <4.0.0"
18+
sdk: ">=3.5.0 <4.0.0"
1919
flutter: ">=3.24.0"
2020

2121
dependencies:

0 commit comments

Comments
 (0)