Move repository checkout step to the main workflow for better control and clarity in the CI process

This commit is contained in:
Dr.Blank 2025-04-04 23:09:52 +05:30
parent 49a24b675e
commit f241de3c22
No known key found for this signature in database
GPG key ID: BA5F87FF0560C57B
2 changed files with 5 additions and 9 deletions

View file

@ -16,15 +16,6 @@ inputs:
runs:
using: "composite" # Specify this is a composite action
steps:
# Note: Checkout needs to happen *within the job using the composite action* usually.
# However, for self-contained setup, we can include it here.
# If you need checkout options controlled by the main workflow, move checkout
# to be the first step in the main workflow's job *before* calling this action.
- name: Checkout repository (within composite)
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Java
uses: actions/setup-java@v4
with:

View file

@ -16,6 +16,11 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Flutter Environment
uses: ./.github/actions/flutter-setup # Path to the composite action directory
# Pass inputs if needed (optional, using defaults here)