Replace setup-env action with reusable flutter-setup workflow; streamline CI configuration and enhance dependency management

This commit is contained in:
Dr.Blank 2025-04-04 23:01:18 +05:30
parent 0d2db7778a
commit d55ddc5b78
No known key found for this signature in database
GPG key ID: BA5F87FF0560C57B
3 changed files with 74 additions and 44 deletions

View file

@ -1,25 +0,0 @@
name: 🛠️ Setup Env
on:
workflow_call:
inputs:
flutter_version:
required: false
type: string
default: "stable"
description: "Flutter version to use. Default is 'stable'."
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: "${{ inputs.flutter_version }}"
flutter-version-file: pubspec.yaml
- name: Install dependencies
run: flutter pub get