feat: 3.5.0対応の為にlintバージョンを5.0.0へ変更 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/ci.yml | |
| name: CI | |
| on: | |
| push: { branches: [ main ] } | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| flutter: [ '3.24.0', 'stable' ] # 3.24.0 = Dart 3.5系, stable = 最新 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # stable(最新)用:channelのみ指定 | |
| - uses: subosito/flutter-action@v2 | |
| if: ${{ matrix.flutter == 'stable' }} | |
| with: | |
| channel: stable | |
| # 固定バージョン用:flutter-versionを指定(必要ならchannelもstable) | |
| - uses: subosito/flutter-action@v2 | |
| if: ${{ matrix.flutter != 'stable' }} | |
| with: | |
| channel: stable | |
| flutter-version: ${{ matrix.flutter }} | |
| - run: flutter --version && dart --version | |
| - run: flutter pub get | |
| - run: dart analyze | |
| - run: flutter test | |
| - name: Example | |
| working-directory: example | |
| run: | | |
| flutter pub get | |
| dart analyze | |
| flutter test |