Skip to content

Commit

Permalink
Github workflows added
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Wills committed Jan 28, 2025
1 parent a1c3908 commit 83a2c8c
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish plugin

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install project dependencies
run: flutter pub get
- name: Dart Format Check
run: dart format lib/ test/ --set-exit-if-changed
- name: Import Sorter Check
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
- name: Dart Analyze Check
run: flutter analyze
- name: Dart Test Check
run: flutter test
#- name: Check Publish Warnings
# run: dart pub publish --dry-run
- name: Publish
uses: k-paxian/[email protected]
with:
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
flutter: true
skipTests: true
force: true
29 changes: 29 additions & 0 deletions .github/workflows/pushMaster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Push To Master

on:
push:
branches:
- main

jobs:
build:
name: Build Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Install project dependencies
run: flutter pub get
- name: Dart Format Check
run: dart format lib/ test/ --set-exit-if-changed
- name: Import Sorter Check
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
- name: Dart Analyze Check
run: flutter analyze
- name: Dart Test Check
run: flutter test


1 change: 0 additions & 1 deletion lib/src/actions.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:callkeep/src/call.dart';

import 'event.dart';

class CallKeepDidReceiveStartCallAction extends EventType {
Expand Down
1 change: 1 addition & 0 deletions lib/src/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:io';

import 'package:flutter/services.dart';

import 'package:logger/logger.dart';

import 'actions.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/src/event.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/cupertino.dart';

import 'package:logger/web.dart';

abstract class EventType {
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
import_sorter: ^4.6.0

flutter:
plugin:
Expand Down

0 comments on commit 83a2c8c

Please sign in to comment.