Skip to content

Commit

Permalink
refactor ci (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCanape authored Feb 4, 2024
1 parent af4b97a commit c36fd6c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 80 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/android.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build mobile apps & check tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-android:
name: Build android
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.9'
- name: Install dependencies
run: flutter pub get
- name: Generate l10n
run: flutter gen-l10n
- name: Build apk
run: flutter build apk
- name: Build appbundle
run: flutter build appbundle

build-ios:
name: Build ios
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- name: Install dependencies
run: flutter pub get
- name: Generate l10n
run: flutter gen-l10n
- name: Build ios
run: flutter build ios --release --no-codesign

check-tests:
name: Check Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.9'
channel: 'stable'
- name: Flutter doctor
run: flutter doctor
- name: Get dependencies
run: flutter pub get
- name: Run l10n generation
run: flutter gen-l10n
- name: Run tests
run: flutter test

27 changes: 0 additions & 27 deletions .github/workflows/flutter_test.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/ios.yml

This file was deleted.

0 comments on commit c36fd6c

Please sign in to comment.