Skip to content

Commit

Permalink
ci: update jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Aug 11, 2024
1 parent cd96a5d commit ac0ac5e
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 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 @@ -51,25 +62,17 @@ jobs:
flutter build ios --debug --no-codesign
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage/lcov.info
flags: unittests
name: form_builder_phone_field

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 ac0ac5e

Please sign in to comment.