Skip to content

Commit

Permalink
Merge pull request #134 from flutter-form-builder-ecosystem/dependabo…
Browse files Browse the repository at this point in the history
…t/github_actions/kuhnroyal/flutter-fvm-config-action-3

Bump kuhnroyal/flutter-fvm-config-action from 2 to 3
  • Loading branch information
deandreamatias authored Dec 19, 2024
2 parents 14748a5 + 726deb7 commit aab7491
Showing 1 changed file with 10 additions and 78 deletions.
88 changes: 10 additions & 78 deletions .github/workflows/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,55 +20,35 @@ jobs:
build:
name: Build package & run tests
runs-on: ubuntu-latest

steps:
- name: Checkout repository
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: Get Flutter version by FVM
uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
- name: Setup Flutter
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
with:
path: ".fvmrc"
flavor: "stable"

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
architecture: x64
cache: true

path: '.fvmrc'
flavor: 'stable'
- name: Install dependencies
run: dart pub get

- name: Run l10n
run: flutter gen-l10n

- name: Run l10n on example
run: flutter gen-l10n
working-directory: example

- name: Format code
run: dart format --set-exit-if-changed $(find . -name "*.dart" ! \( -wholename "./lib/localization/intl/*" -or -wholename "./example/lib/localization/intl/*" \))

- name: Analyze static code
run: dart analyze

- name: Run tests
run: flutter test --no-pub --coverage

- name: Check publish warnings
run: dart pub publish --dry-run

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
Expand All @@ -81,78 +61,30 @@ jobs:
example:
name: Build example app
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1 # Use shallow clone for faster checkout

- name: Get Flutter version by FVM
uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
path: ".fvmrc"
flavor: "stable"

- name: Set up Flutter
uses: subosito/flutter-action@v2
- name: Setup Flutter
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
architecture: x64
cache: true

path: '.fvmrc'
flavor: 'stable'
- name: Install dependencies
run: dart pub get

- name: Run l10n
run: flutter gen-l10n

- name: Run l10n on example
run: flutter gen-l10n
working-directory: example

- name: Build example
run: flutter build appbundle --debug
working-directory: example

deployment:
if: ${{ github.ref_type == 'tag' }}
needs: [build, example]
name: Deploy package
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1 # Use shallow clone for faster checkout

- name: Set up Dart
uses: dart-lang/setup-dart@v1

- name: Get Flutter version by FVM
uses: kuhnroyal/flutter-fvm-config-action@v2
id: fvm-config-action
with:
path: ".fvmrc"
flavor: "stable"

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
architecture: x64
cache: true

- name: Install dependencies
run: dart pub get

- name: Run l10n
run: flutter gen-l10n

- name: Publish package
run: dart pub publish -v -f
needs: [build, example]

0 comments on commit aab7491

Please sign in to comment.