Skip to content

build(deps): bump very_good_analysis from 5.0.0+1 to 5.1.0 #482

build(deps): bump very_good_analysis from 5.0.0+1 to 5.1.0

build(deps): bump very_good_analysis from 5.0.0+1 to 5.1.0 #482

Workflow file for this run

---
name: Dart
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
merge_group:
schedule:
- cron: "0 14 * * 1" # every monday at 9 in the morning CST
workflow_dispatch:
env:
CI: true
permissions:
contents: read
jobs:
setup:
name: Setup
needs: []
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🐦 Set up Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2.10.0
with:
channel: "stable"
cache: true
- name: 🌐 Disable Telemetry
run: flutter --disable-telemetry
- name: 📦 Install dependencies
run: flutter pub get
- name: ⚙️ Cache `.dart_tool`
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ".dart_tool/"
key: ${{ runner.os }}-dart-${{ hashFiles('**/build.yaml') }}
- name: 🔌 Generate files
run: |
flutter gen-l10n
dart run dart_define generate --no-gitignore
dart run build_runner build -d
- name: ⚙️ Upload generated files
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: generated-files
path: |
lib/gen/*.gen.dart
lib/**/*.g.dart
lib/**/*.gr.dart
lib/**/*.gm.dart
lib/**/*.freezed.dart
lib/l10n/app_localizations.dart
lib/l10n/app_localizations_*.dart
lib/widgetbook.generator.*.dart
if-no-files-found: error
build:
name: Build
needs: ["setup"]
timeout-minutes: ${{ (matrix.target == 'web') && 5 || 10 }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
flutter:
- stable
target:
- web
- appbundle
# - ios
# - macos
# - windows
include:
- target: web
os: ubuntu-latest
flutter-flags: --release
- target: appbundle
os: ubuntu-latest
flutter-flags: --debug --no-tree-shake-icons --no-shrink
# - target: ios
# os: macos-latest
# flutter-flags: --debug --no-tree-shake-icons
# - target: macos
# os: macos-latest
# flutter-flags: --debug --no-tree-shake-icons
# - target: windows
# os: windows-latest
# flutter-flags: --debug --no-tree-shake-icons
steps:
- name: 📚 Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🐦 Set up Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2.10.0
with:
channel: ${{ matrix.flutter }}
cache: true
- name: 🌐 Disable Telemetry
run: flutter --disable-telemetry
- name: 📦 Install dependencies
run: flutter pub get
- name: ⚙️ Download generated code
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: generated-files
path: lib
- name: 🔌 Generate Dart Defines
run: dart run dart_define generate --no-gitignore
- name: 🔧 Build
run: |
flutter build ${{ matrix.target }} ${{ matrix.flutter-flags }} --dart-define-from-file=dart_define.json
# - name: ⚙️ Upload build
# uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
# with:
# name: build-directory-${{ matrix.target }}
# path: ./build
# if-no-files-found: error
lint:
name: Linting
needs: ["setup"]
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
flutter: ["stable"]
steps:
- name: 📚 Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🐦 Set up Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2.10.0
with:
channel: ${{ matrix.flutter }}
cache: true
- name: 🌐 Disable Telemetry
run: flutter --disable-telemetry
- name: 📦 Install dependencies
run: flutter pub get
- name: ⚙️ Download generated code
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: generated-files
path: lib
- name: 🔌 Generate Dart Defines
run: dart run dart_define generate --no-gitignore
- name: 🕵️ Analyze project source
run: flutter analyze --fatal-infos
- name: 🕵️ Lint Riverpod
run: dart run custom_lint
test:
name: Testing
needs: ["setup"]
timeout-minutes: 7
runs-on: ubuntu-latest
strategy:
matrix:
flutter: ["stable"]
steps:
- name: 📚 Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🐦 Set up Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2.10.0
with:
channel: ${{ matrix.flutter }}
cache: true
- name: 🌐 Disable Telemetry
run: flutter --disable-telemetry
- name: 📦 Install dependencies
run: flutter pub get
- name: ⚙️ Download generated code
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: generated-files
path: lib
- name: 🔌 Generate Dart Defines
run: dart run dart_define generate --no-gitignore
- name: 🧪 Run tests
run: |
dart run very_good_cli:very_good --analytics false
dart run very_good_cli:very_good test --coverage --test-randomize-ordering-seed random
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@e5c91bc7ce9843e87c800b3bcafdfb86fbe28491 # v2.1.0
with:
path: coverage/lcov.info
min_coverage: 10 # 100
exclude: lib/**/*.g.dart lib/**/*.gr.dart lib/**/*.gm.dart lib/**/*.freezed.dart lib/l10n/app_localizations.dart lib/l10n/app_localizations_*.dart lib/widgetbook.generator.*.dart
format:
name: Formatting
needs: ["setup"]
timeout-minutes: 3
runs-on: ubuntu-latest
strategy:
matrix:
flutter: ["stable"]
steps:
- name: 📚 Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
clean: true
persist-credentials: false
set-safe-directory: true
- name: 🐦 Set up Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # v2.10.0
with:
channel: ${{ matrix.flutter }}
cache: true
- name: 🌐 Disable Telemetry
run: flutter --disable-telemetry
- name: ✨ Verify formatting
run: dart format --output=none --set-exit-if-changed .