Skip to content

docs: generate and commit API reference during release publish #302

docs: generate and commit API reference during release publish

docs: generate and commit API reference during release publish #302

name: Flutter Checks
on:
pull_request:
paths-ignore:
- "docs/**"
- "packages/react-native/**"
- "**.md"
push:
branches:
- main
paths-ignore:
- "docs/**"
- "packages/react-native/**"
- "**.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
- name: "Bootstrap Workspace"
run: melos bootstrap
working-directory: ./packages/flutter
- name: "Run Analyze"
run: melos run analyze
working-directory: ./packages/flutter
- name: "Pub Check"
run: |
melos exec -c 1 --no-private --ignore="*example*" -- \
dart pub publish --dry-run
working-directory: ./packages/flutter
format:
runs-on: macos-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
curl -sL https://github.com/google/google-java-format/releases/download/google-java-format-1.3/google-java-format-1.3-all-deps.jar -o $HOME/google-java-format.jar
- name: Install native formatters
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install clang-format swiftformat
- name: "Bootstrap Workspace"
run: melos bootstrap
working-directory: ./packages/flutter
- name: "Dart"
run: |
melos run format
../../.github/workflows/scripts/validate-formatting.sh
working-directory: ./packages/flutter
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: "Install Flutter"
run: ./.github/workflows/scripts/install-flutter.sh stable
- name: "Install Tools"
run: ./.github/workflows/scripts/install-tools.sh
- name: "Bootstrap Workspace"
run: melos bootstrap
working-directory: ./packages/flutter
- name: "Flutter Test"
run: melos run test --no-select
working-directory: ./packages/flutter