enhanced_gradients test #465
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: enhanced_gradients test | |
on: | |
push: | |
branches: [master] | |
tags-ignore: ['enhanced_gradients-v*'] | |
paths: | |
- 'packages/enhanced_gradients/**' | |
pull_request: | |
branches: [master] | |
paths: | |
- 'packages/enhanced_gradients/**' | |
# Run a check daily due to the dependency on `material_color_utilities: any` | |
schedule: | |
- cron: '0 17 * * *' | |
jobs: | |
test: | |
name: Flutter ${{ matrix.channel }}${{ matrix.version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- version: '3.19.x' | |
- channel: 'stable' | |
defaults: | |
run: | |
working-directory: packages/enhanced_gradients | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: ${{ matrix.channel }} | |
flutter-version: ${{ matrix.version }} | |
cache: true | |
- name: Download pub dependencies | |
run: flutter pub get | |
- name: Run analyzer | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test | |
- name: Dry run pub publish | |
# We don't want it to fail the CI, it's just to see how would `pub publish` behave. | |
run: dart pub publish --dry-run || true |