Skip to content

fix github actions #253

fix github actions

fix github actions #253

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: build
on:
push:
branches: [develop, release, hotfix, master]
pull_request:
branches: [develop, release, hotfix, master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
name: Build test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: dart --version
- run: flutter --version
- run: flutter test
- name: publish test
run: flutter pub publish --dry-run
- name: android build
run: |
cd example
flutter build appbundle
flutter build apk
test-ios:
name: iOS build test
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
architecture: x64
- run: dart --version
- run: flutter --version
- name: iOS build
run: |
cd example
flutter build ios --release --no-codesign