Skip to content

Commit

Permalink
ci: improve jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Aug 11, 2024
1 parent d0b3229 commit f1d2b07
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

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

- name: Check broken links
uses: JustinBeckwith/linkinator-action@v1
Expand All @@ -29,10 +31,19 @@ jobs:
distribution: 'zulu'
java-version: '11'

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

- name: Flutter action
uses: subosito/flutter-action@v2
with:
channel: 'stable'
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: flutter pub get
Expand All @@ -52,27 +63,16 @@ jobs:
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
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
if: ${{ github.ref_type == 'tag' }}
needs: build

0 comments on commit f1d2b07

Please sign in to comment.