Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create check_pr.yml #19

Merged
merged 14 commits into from
Aug 28, 2023
Merged

Create check_pr.yml #19

merged 14 commits into from
Aug 28, 2023

Conversation

Robert-SD
Copy link
Contributor

Summary

Added Github actions step

Robert-SD and others added 13 commits August 28, 2023 10:53
diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml
index 9b8d0b4..1680952 100644
--- a/.github/workflows/check_pr.yml
+++ b/.github/workflows/check_pr.yml
@@ -42,4 +42,4 @@ jobs:
       # package:test for this step to succeed. Note that Flutter projects will
       # want to change this to 'flutter test'.
       - name: Run tests
-        run: dart test
+        run: flutter test
diff --git a/test/adyen_checkout_test.dart b/test/adyen_checkout_test.dart
index 45aea9b..a05267d 100644
--- a/test/adyen_checkout_test.dart
+++ b/test/adyen_checkout_test.dart
@@ -1,7 +1,6 @@
 import 'package:adyen_checkout/platform_api.g.dart';
 import 'package:adyen_checkout/src/adyen_checkout.dart';
 import 'package:adyen_checkout/src/adyen_checkout_interface.dart';
-import 'package:flutter/cupertino.dart';
 import 'package:flutter_test/flutter_test.dart';
 import 'package:plugin_platform_interface/plugin_platform_interface.dart';

@@ -25,7 +24,7 @@ class MockAdyenCheckoutPlatform
 }

 void main() {
-  WidgetsFlutterBinding.ensureInitialized();
+  TestWidgetsFlutterBinding.ensureInitialized();
   final AdyenCheckout initialPlatform = AdyenCheckout();

   test('$AdyenCheckout is the default instance', () {
@Robert-SD Robert-SD merged commit f437811 into main Aug 28, 2023
1 check passed
@Robert-SD Robert-SD deleted the feature/add_github_action branch September 13, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant