Skip to content

Fix publish and action merge to main #23

Fix publish and action merge to main

Fix publish and action merge to main #23

name: Flutter Plugin CI
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.2'
- name: Install dependencies
run: flutter pub get
- name: Lint code
run: flutter analyze
- name: Run tests
run: flutter test
- name: Build Android app
run: |
cd example
flutter build apk
- name: Check publish is possible
run: flutter pub publish --dry-run
# Broken since NearbyCoreAdapter needs to be installed manually with SPM
# - name: Build iOS app
# run: |
# cd example
# flutter build ios --no-codesign