From 3f8bc282b0995df891a775de025587f8cae750b2 Mon Sep 17 00:00:00 2001 From: Prerak Mann Date: Wed, 27 Jan 2021 15:41:44 +0530 Subject: [PATCH] Add github actions (#28) --- .github/workflows/flutter.yml | 27 +++++++++++++++++++++++++++ example/pubspec.lock | 14 ++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/flutter.yml diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml new file mode 100644 index 0000000..3f02ac1 --- /dev/null +++ b/.github/workflows/flutter.yml @@ -0,0 +1,27 @@ +name: Flutter CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + with: + channel: 'beta' + + # Get flutter dependencies. + - run: flutter packages get + + # Check for any formatting issues in the code. + - run: flutter format --set-exit-if-changed . + + # Statically analyze the Dart code for any errors. + - run: flutter analyze . diff --git a/example/pubspec.lock b/example/pubspec.lock index 9b58520..86799d1 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -130,6 +130,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.8.0-nullsafety.3" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.2" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.3" sky_engine: dependency: transitive description: flutter