Skip to content

Commit

Permalink
Merge pull request #52 from yumemi-inc/fix/migrate-actions
Browse files Browse the repository at this point in the history
fix: GitHub Actions / Workflows ・yumemi_weather の更新
  • Loading branch information
blendthink authored Nov 17, 2023
2 parents 76d6e40 + 33c4ed4 commit 5e24d85
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 15 deletions.
10 changes: 6 additions & 4 deletions .github/templates/.github/workflows-templates/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 0 additions & 4 deletions .github/templates/analysis_options.yaml

This file was deleted.

16 changes: 13 additions & 3 deletions .github/workflows/deploy-api-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 11 additions & 3 deletions .github/workflows/template-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <<EOF > 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 ..
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion packages/yumemi_weather/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e24d85

Please sign in to comment.