Skip to content

Commit

Permalink
Merge pull request #20 from ngthailam/tech/6/Add_CI_CD
Browse files Browse the repository at this point in the history
[Tech#6] Add CI
  • Loading branch information
ngthailam authored May 21, 2022
2 parents 4dcef6d + badfb24 commit 2a33d0e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: run Example CI


on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'

jobs:
build:
name: Test, build debug
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: '12.x'

- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
flutter-version: '2.10.3'

# Get flutter dependencies.
- name: Download pub dependencies
run: flutter pub get

# Statically analyze the Dart code for any errors.
- name: Run analyzer
run: flutter analyze .

# Run widget tests for our flutter project.
- name: Run tests
run: flutter test

# Build apk.
- name: Build debug apk
run: cd example && flutter build apk --debug
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.0"
version: "0.2.1"
flutter_lints:
dependency: "direct dev"
description:
Expand Down
2 changes: 0 additions & 2 deletions lib/flutter_app_shortcut.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:convert';

import 'package:flutter/services.dart';
import 'package:flutter_app_shortcut/short_cut_arg.dart';
Expand Down Expand Up @@ -34,7 +33,6 @@ class FlutterAppShortcut implements FlutterAppShortcutFunctions {
final result = <ShortcutArg>[];

data.forEach((key, value) {
print("$key - $value");
result.add(ShortcutArg.fromMap(value));
});

Expand Down

0 comments on commit 2a33d0e

Please sign in to comment.