Skip to content

chore(ci): create CI #5

chore(ci): create CI

chore(ci): create CI #5

Workflow file for this run

name: CI
on: push
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
- name: Get dependencies
run: |
flutter pub get
flutter analyze
dart format --set-exit-if-changed .
flutter test
build-android:
needs: analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Build Android appbundle
run: flutter build appbundle --debug
build-ios:
needs: analyze
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Build ios
run: flutter build ios --debug
build-web:
needs: analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Build web
run: flutter build web --debug
build-linux:
needs: analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Linux prerequisites
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Build linux
run: flutter build linux --debug
build-windows:
needs: analyze
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Build windows
run: flutter build windows --debug
build-macos:
needs: analyze
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Build macos
run: flutter build macos --debug