Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-carroll committed Oct 18, 2024
1 parent b60866b commit fb448dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/pr_validation.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand All @@ -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
1 change: 0 additions & 1 deletion lib/src/content_layers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/content_layers_test.dart
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit fb448dd

Please sign in to comment.