Skip to content

Commit

Permalink
chore(ci): create CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrFLEURY committed Mar 3, 2024
1 parent dca67b0 commit a9fc602
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 4 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ app.*.map.json
/android/app/profile
/android/app/release

assets/books/
assets/books/*.epub
Empty file added assets/books/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions lib/views/linear_pogress_listener.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class LinearProgressController {
LinearProgressController();

void Function(double) onProgress = (double progress) {};

}

class LinearProgressListener extends StatefulWidget {
Expand All @@ -15,7 +14,6 @@ class LinearProgressListener extends StatefulWidget {

final LinearProgressController controller;


@override
State<LinearProgressListener> createState() => _LinearProgressListenerState();
}
Expand Down
2 changes: 1 addition & 1 deletion test/widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import 'package:flutter_test/flutter_test.dart';

void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
//
//
});
}

0 comments on commit a9fc602

Please sign in to comment.