Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Rene Floor <rene.floor@ah.nl>
  • Loading branch information
renefloor committed May 6, 2024
1 parent 636f6f0 commit ee3c90c
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,36 @@ on:
pull_request:
branches: [ master ]

env:
JAVA_VERSION: "17.x"
JAVA_DISTRIBUTION: "zulu"

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Install Flutter
uses: subosito/flutter-action@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
flutter-version: '3.19.1'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- uses: dart-lang/setup-dart@v1
- name: Install fvm
run: |
dart pub global activate fvm 3.1.4
fvm install
- name: Install melos
run: dart pub global activate melos 6.0.0
- name: Install dependencies
run: flutter pub get
run: melos bs
- name: Run dart analyze
run: dart analyze
run: melos analyze
- name: build iOS example project
working-directory: ./example
run: flutter build ios --release --no-codesign
working-directory: ./packages/platform_maps_flutter/example
run: fvm flutter build ios --release --no-codesign
- name: build android example project
working-directory: ./example
run: flutter build apk
- name: publish --dry-run
run: flutter pub publish --dry-run
working-directory: ./packages/platform_maps_flutter/example
run: fvm flutter build apk
# disabled for now, because will fail with multi-package setup
# - name: publish --dry-run
# run: flutter pub publish --dry-run

0 comments on commit ee3c90c

Please sign in to comment.