Skip to content

custom test

custom test #12

name: widget_wrapper
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- ".github/workflows/widget_wrapper.yaml"
- "lib/**"
- "test/**"
- "pubspec.yaml"
push:
branches:
- master
paths:
- ".github/workflows/widget_wrapper.yaml"
- "lib/**"
- "test/**"
- "pubspec.yaml"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [3.19, 3.24, 3.27, 3.22]
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: 📦 Install Dependencies
run: dart pub get
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed .
- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings .
- name: 🧪 Test
run: dart test
spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: |
**/*.md
!brick/**/*.md
.*/**/*.md
modified_files_only: false
verify-version:
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: "stable"
- name: 📦 Install Dependencies
run: |
dart pub get
- name: 🔎 Verify version
run: dart run test --run-skipped -t version-verify