From ecf77c6a632800ee01752bfe9f1b0fef2c8b7914 Mon Sep 17 00:00:00 2001 From: Amish Garg Date: Tue, 30 Jun 2020 01:25:23 +0530 Subject: [PATCH] CI for uint tests --- .github/workflows/dart_ci.yml | 24 ++++++++++++++++++++++++ example/pubspec.yaml | 17 +++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/dart_ci.yml create mode 100644 example/pubspec.yaml diff --git a/.github/workflows/dart_ci.yml b/.github/workflows/dart_ci.yml new file mode 100644 index 0000000..81e0c5e --- /dev/null +++ b/.github/workflows/dart_ci.yml @@ -0,0 +1,24 @@ +name: Dart CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: subosito/flutter-action@v1 + with: + channel: 'stable' + + - name: Install dependencies + run: flutter pub get + + - name: Run tests + run: flutter test test diff --git a/example/pubspec.yaml b/example/pubspec.yaml new file mode 100644 index 0000000..11d1eb3 --- /dev/null +++ b/example/pubspec.yaml @@ -0,0 +1,17 @@ +name: example +description: Example + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.1.0 <3.0.0"