From fb448dd687f7fa787813356299426cdd18b41192 Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Thu, 17 Oct 2024 22:20:33 -0700 Subject: [PATCH] Fix tests --- .github/workflows/pr_validation.yml | 19 +++++++++++++++---- lib/src/content_layers.dart | 1 - test/content_layers_test.dart | 1 - 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr_validation.yml b/.github/workflows/pr_validation.yml index 66bc3c3..2e53696 100644 --- a/.github/workflows/pr_validation.yml +++ b/.github/workflows/pr_validation.yml @@ -1,7 +1,7 @@ name: Run analysis and tests for pull requests on: [pull_request] jobs: - test: + analysis: runs-on: ubuntu-latest steps: # Checkout the PR branch @@ -18,6 +18,20 @@ jobs: # Static analysis - run: flutter analyze + test: + runs-on: ubuntu-latest + steps: + # Checkout the PR branch + - uses: actions/checkout@v3 + + # Setup Flutter environment + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + + # Download all the packages that the app uses + - run: flutter pub get + # Run all tests - run: flutter test @@ -36,8 +50,5 @@ jobs: # Download all the packages that the app uses - run: flutter pub get - # Static analysis - - run: flutter analyze - # Run all tests - run: flutter test test_goldens diff --git a/lib/src/content_layers.dart b/lib/src/content_layers.dart index a2c6cae..b082b47 100644 --- a/lib/src/content_layers.dart +++ b/lib/src/content_layers.dart @@ -2,7 +2,6 @@ import 'package:flutter/rendering.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter/widgets.dart'; import 'package:follow_the_leader/follow_the_leader.dart'; -import 'package:follow_the_leader/src/sliver_hybrid_stack.dart'; import 'package:logging/logging.dart'; /// Widget that displays [content] above a number of [underlays], and beneath a number of diff --git a/test/content_layers_test.dart b/test/content_layers_test.dart index d8b3a79..de88848 100644 --- a/test/content_layers_test.dart +++ b/test/content_layers_test.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:follow_the_leader/follow_the_leader.dart';