chore(release): 4.1.0 #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Base | |
on: | |
push: | |
branches: [main] | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+*' | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check broken links | |
uses: JustinBeckwith/linkinator-action@v1 | |
with: | |
paths: "**/*.md" | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Flutter action | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- 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 | |
- 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 | |
# - name: Upload coverage to Codecov | |
# if: ${{ matrix.channel == 'stable' }} | |
# uses: codecov/codecov-action@v3 | |
# with: | |
# files: coverage/lcov.info | |
# flags: unittests | |
# name: form_builder_file_picker | |
deployment: | |
if: ${{ github.ref_type == 'tag' }} | |
needs: build | |
name: Deploy package | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Flutter action | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Publish package | |
run: dart pub publish -v -f | |