Skip to content

Merge pull request #1449 from ahmedmandur/feature/add-missing-choicec… #393

Merge pull request #1449 from ahmedmandur/feature/add-missing-choicec…

Merge pull request #1449 from ahmedmandur/feature/add-missing-choicec… #393

Workflow file for this run

name: Base
on:
push:
branches: [main]
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
pull_request:
branches: [main]
workflow_dispatch:
# This ensures that previous jobs for the PR are canceled when PR is updated
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1 # Use shallow clone for faster checkout
- name: Check broken links
uses: JustinBeckwith/linkinator-action@v1
with:
paths: "**/*.md"
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Flutter
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
with:
path: '.fvmrc'
- name: Install dependencies
run: flutter pub get
- name: Format code
run: dart format --set-exit-if-changed .
- name: Analyze static code
run: flutter analyze
- name: Run tests
run: flutter test --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage/lcov.info
name: flutter_form_builder
- name: Check publish warnings
run: dart pub publish --dry-run
- name: Build example
run: |
cd example
flutter build appbundle --debug
flutter build ios --debug --no-codesign
flutter build web
deployment:
permissions:
id-token: write
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
if: ${{ github.ref_type == 'tag' }}
needs: build