Skip to content

Commit

Permalink
Set up CI/CD (#32)
Browse files Browse the repository at this point in the history
* Set up CI

* Format files

* Set up environment
  • Loading branch information
cp-sneha-s authored Jan 10, 2024
1 parent aac2884 commit a6974c9
Show file tree
Hide file tree
Showing 23 changed files with 50 additions and 224 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish to pub.dev

on:
push:
branches:
- main
types: [closed]
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write # Required for authentication
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
# Specify the github actions deployment environment
environment: pub.dev
28 changes: 28 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI Tests

on: pull_request
jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Flutter SDK
uses: subosito/flutter-action@v2
with:
channel: stable
version: 3.3.7

- name: Get dependencies
run: flutter pub get

- name: Verify Formatting
run: dart format --output=none --set-exit-if-changed .

- name: Analyze Project Source
run: dart analyze



4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.0.2
## 0.0.3

* Update readme and clean up
* Set up github workflow

This file was deleted.

2 changes: 0 additions & 2 deletions android/local.properties

This file was deleted.

14 changes: 0 additions & 14 deletions ios/Flutter/Generated.xcconfig

This file was deleted.

13 changes: 0 additions & 13 deletions ios/Flutter/flutter_export_environment.sh

This file was deleted.

19 changes: 0 additions & 19 deletions ios/Runner/GeneratedPluginRegistrant.h

This file was deleted.

14 changes: 0 additions & 14 deletions ios/Runner/GeneratedPluginRegistrant.m

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/builder/motion_grid_view_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class MotionGridViewBuilder<E extends Object> extends StatelessWidget {
/// but it is more efficient to place tiles in roughly in order by scroll offset because grids reify a contiguous sequence of children.
final SliverGridDelegate sliverGridDelegate;


/// {@template flutter.widgets.scroll_view.reverse}
/// Whether the scroll view scrolls in the reading direction.
///
Expand Down
1 change: 0 additions & 1 deletion lib/src/builder/motion_list_view_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class MotionListViewBuilder<E extends Object> extends StatelessWidget {
/// The duration of the animation when an item was removed from the list.
final Duration removeDuration;


/// {@template flutter.widgets.scroll_view.reverse}
/// Whether the scroll view scrolls in the reading direction.
///
Expand Down
1 change: 0 additions & 1 deletion lib/src/component/motion_animated_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:animated_reorderable_list/src/model/motion_data.dart';
import '../builder/motion_animated_builder.dart';

class MotionAnimatedContent extends StatefulWidget {

final int index;
final MotionData motionData;
final Widget? child;
Expand Down
3 changes: 1 addition & 2 deletions lib/src/model/motion_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ class MotionData {
endOffset == other.endOffset;

@override
int get hashCode => startOffset.hashCode^endOffset.hashCode;

int get hashCode => startOffset.hashCode ^ endOffset.hashCode;
}
11 changes: 0 additions & 11 deletions linux/flutter/generated_plugin_registrant.cc

This file was deleted.

15 changes: 0 additions & 15 deletions linux/flutter/generated_plugin_registrant.h

This file was deleted.

23 changes: 0 additions & 23 deletions linux/flutter/generated_plugins.cmake

This file was deleted.

10 changes: 0 additions & 10 deletions macos/Flutter/GeneratedPluginRegistrant.swift

This file was deleted.

11 changes: 0 additions & 11 deletions macos/Flutter/ephemeral/Flutter-Generated.xcconfig

This file was deleted.

12 changes: 0 additions & 12 deletions macos/Flutter/ephemeral/flutter_export_environment.sh

This file was deleted.

2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: animated_reorderable_list
description: A Flutter Reorderable Animated List with simple implementation and smooth transition.
version: 0.0.2
version: 0.0.3
repository: https://github.com/canopas/animated_reorderable_list

environment:
Expand Down
11 changes: 0 additions & 11 deletions windows/flutter/generated_plugin_registrant.cc

This file was deleted.

15 changes: 0 additions & 15 deletions windows/flutter/generated_plugin_registrant.h

This file was deleted.

23 changes: 0 additions & 23 deletions windows/flutter/generated_plugins.cmake

This file was deleted.

0 comments on commit a6974c9

Please sign in to comment.