Skip to content

Fix/ios logging

Fix/ios logging #629

Workflow file for this run

name: Check, Test and Build
on:
pull_request:
concurrency:
group: check-test-build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FLUTTER_CHANNEL: "stable"
FLUTTER_VERSION: "3.38.9"
RUBY_VERSION: "3.2.2"
XCODE_VERSION: "26"
jobs:
changes:
name: Detect changed platforms
runs-on: ubuntu-latest
outputs:
android: ${{ steps.filter.outputs.android }}
ios: ${{ steps.filter.outputs.ios }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Detect changes
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
android:
- 'lib/**'
- 'android/**'
- 'pubspec.yaml'
- 'pubspec.lock'
- '.github/workflows/build.yml'
ios:
- 'lib/**'
- 'ios/**'
- 'pubspec.yaml'
- 'pubspec.lock'
- '.github/workflows/build.yml'
analyze:
name: Analyze code (SAST)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Generate code
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Analyze code
run: flutter analyze
test:
name: Run tests
runs-on: ubuntu-latest
needs: analyze
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_CHANNEL }}
cache: true
- name: Run tests
run: flutter test