Make shelfsdk a submodule #81
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: Flutter Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# This ensures submodules are cloned | |
submodules: recursive | |
# Debug: Echo current directory contents | |
- name: List root directory contents | |
run: | | |
pwd | |
ls -la | |
# Debug: Recursive directory structure | |
- name: Show full directory structure | |
run: | | |
echo "Full directory structure:" | |
tree -L 3 | |
# Debug: Submodule status and details | |
- name: Check submodule status | |
run: | | |
echo "Submodule status:" | |
git submodule status | |
echo "\nSubmodule details:" | |
git submodule foreach 'echo $path: && pwd && ls -la' | |
- name: Decode android/upload.jks | |
run: echo "${{ secrets.UPLOAD_KEYSTORE_JKS }}" | base64 --decode > android/upload.jks | |
- name: Decode android/key.properties | |
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run tests | |
run: flutter test | |
- name: Set Up Java | |
uses: actions/[email protected] | |
with: | |
distribution: "oracle" | |
java-version: "17" | |
- name: Build APK | |
run: flutter build apk --release | |
- name: Upload APKs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app-release | |
path: build/app/outputs/flutter-apk/*.apk |