Skip to content

[WIP]GitHub Actions で自動フォーマット #12

[WIP]GitHub Actions で自動フォーマット

[WIP]GitHub Actions で自動フォーマット #12

Workflow file for this run

name: Auto Format
on:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
# https://github.com/actions/checkout
- name: Checkout
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@v2
id: fvm-config-action
# https://github.com/subosito/flutter-action
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
- name: Setup melos
run: |
ln -s $FLUTTER_ROOT .fvm/flutter_sdk
dart pub global activate melos
melos bootstrap
- name: Run Melos Format
run: melos run format