diff --git a/.github/templates/.github/workflows-templates/check-pr.yaml b/.github/templates/.github/workflows-templates/check-pr.yaml index d4be18a..8048f2e 100644 --- a/.github/templates/.github/workflows-templates/check-pr.yaml +++ b/.github/templates/.github/workflows-templates/check-pr.yaml @@ -12,13 +12,13 @@ jobs: steps: # https://github.com/actions/checkout - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # https://github.com/kuhnroyal/flutter-fvm-config-action - name: Fetch flutter config - uses: kuhnroyal/flutter-fvm-config-action@v1 + uses: kuhnroyal/flutter-fvm-config-action@v2 id: fvm-config-action # https://github.com/subosito/flutter-action @@ -47,9 +47,11 @@ jobs: - name: Install dependencies run: flutter pub get - # https://github.com/blendthink/elixir + # https://github.com/invertase/github-action-dart-analyzer - name: Report analyze - uses: blendthink/elixir@v2 + uses: invertase/github-action-dart-analyzer@v1 + with: + fatal-infos: true - name: Run test run: flutter test --no-pub --machine > test_report.log diff --git a/.github/templates/.github/workflows-templates/review-assign.yaml b/.github/templates/.github/workflows-templates/review-assign.yaml index 85a9d71..f3c114a 100644 --- a/.github/templates/.github/workflows-templates/review-assign.yaml +++ b/.github/templates/.github/workflows-templates/review-assign.yaml @@ -11,6 +11,7 @@ jobs: assign: runs-on: ubuntu-latest steps: + # https://github.com/hkusu/review-assign-action - uses: hkusu/review-assign-action@v1 with: assignees: ${{ github.actor }} diff --git a/.github/templates/analysis_options.yaml b/.github/templates/analysis_options.yaml deleted file mode 100644 index 6203362..0000000 --- a/.github/templates/analysis_options.yaml +++ /dev/null @@ -1,4 +0,0 @@ -include: package:blendthink_lints/recommended.yaml - -linter: - rules: diff --git a/.github/workflows/deploy-api-docs.yaml b/.github/workflows/deploy-api-docs.yaml index b547116..215415b 100644 --- a/.github/workflows/deploy-api-docs.yaml +++ b/.github/workflows/deploy-api-docs.yaml @@ -25,19 +25,29 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: + # https://github.com/actions/checkout - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + # https://github.com/dart-lang/setup-dart - name: Setup Dart uses: dart-lang/setup-dart@v1 + - name: Build run: dart doc --output="${{ vars.API_DOCS_DIR }}" working-directory: ${{ vars.API_PACKAGE_DIR }} + + # https://github.com/actions/configure-pages - name: Setup Pages uses: actions/configure-pages@v3 + + # https://github.com/actions/upload-pages-artifact - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: ${{ vars.API_PACKAGE_DIR }}/${{ vars.API_DOCS_DIR }} + + # https://github.com/actions/deploy-pages - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2 diff --git a/.github/workflows/template-cleanup.yaml b/.github/workflows/template-cleanup.yaml index 41b0d67..0ca4621 100644 --- a/.github/workflows/template-cleanup.yaml +++ b/.github/workflows/template-cleanup.yaml @@ -19,8 +19,9 @@ jobs: if: github.event.repository.name != 'flutter-training-template' steps: + # https://github.com/actions/checkout - name: Fetch sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create issues from sessions uses: ./.github/actions/create-issues-from-sessions @@ -57,9 +58,15 @@ jobs: . # Add lints to dev_dependencies - fvm flutter pub add blendthink_lints --dev + fvm flutter pub add dev:yumemi_lints fvm flutter pub remove flutter_lints + # Override the analysis_options.yaml + cat < analysis_options.yaml + # https://pub.dev/packages/yumemi_lints + include: package:yumemi_lints/flutter/$flutterLatestVersion/recommended.yaml + EOF + # Move work dir to project root cd .. @@ -85,8 +92,9 @@ jobs: git add . git commit -m "Template cleanup" + # https://github.com/ad-m/github-push-action - name: Push changes - uses: ad-m/github-push-action@v0.6.0 + uses: ad-m/github-push-action@v0.8.0 with: branch: main github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/packages/yumemi_weather/pubspec.yaml b/packages/yumemi_weather/pubspec.yaml index 67c4518..47dcb8a 100644 --- a/packages/yumemi_weather/pubspec.yaml +++ b/packages/yumemi_weather/pubspec.yaml @@ -4,7 +4,7 @@ version: 1.0.0 homepage: https://yumemi-inc.github.io/flutter-training-template/ environment: - sdk: '>=2.18.2 <3.0.0' + sdk: '>=2.18.2 <4.0.0' dev_dependencies: lints: ^2.0.1