Update .gitea/workflows/docker-run-tests.yml

This commit is contained in:
2024-11-19 13:41:20 +00:00
parent 02b43fa171
commit cf35558d85

View File

@@ -24,17 +24,6 @@ jobs:
echo "PATH=$PATH:${{ env.my_local_cache_dir }}Android/Sdk/cmdline-tools/latest/bin:${{ env.my_local_cache_dir }}Android/Sdk/platform-tools:${{ env.my_local_cache_dir }}Android/Sdk/build-tools/30.0.3:${{ env.my_local_cache_dir }}Android/Sdk/build-tools/34.0.0" >> $GITHUB_ENV
echo "ANDROID_HOME=${{ env.my_local_cache_dir }}Android/Sdk" >> $GITHUB_ENV
# - id: flutter-action
# uses: actions/flutter-action@v2
# with:
# channel: ${{ env.flutter_channel }}
# flutter-version: ${{ env.flutter_version }}
# cache: true
# cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
# cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
# pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies
# pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
- name: Fix dir permissions
run: |
git config --global --add safe.directory /opt/hostedtoolcache/flutter/${{ env.flutter_channel }}-${{ env.flutter_version }}-${{ steps.flutter-action.outputs.ARCHITECTURE }}
@@ -50,19 +39,19 @@ jobs:
- name: Test
run: flutter test
- name: Build apk
run: flutter build apk
# - name: Build apk
# run: flutter build apk
- name: Rename and move apk
run: |
TIMESTAMP=$(TZ=Europe/Moscow date +'%Y-%m-%d-%H-%M')
APK_NAME="eatvio_app_${TIMESTAMP}.apk"
mv build/app/outputs/flutter-apk/app-release.apk $APK_NAME
echo "APK build finished $APK_NAME"
echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
# - name: Rename and move apk
# run: |
# TIMESTAMP=$(TZ=Europe/Moscow date +'%Y-%m-%d-%H-%M')
# APK_NAME="eatvio_app_${TIMESTAMP}.apk"
# mv build/app/outputs/flutter-apk/app-release.apk $APK_NAME
# echo "APK build finished $APK_NAME"
# echo "APK_NAME=$APK_NAME" >> $GITHUB_ENV
- name: Upload APK artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.APK_NAME }}
path: ${{ env.APK_NAME }}
# - name: Upload APK artifact
# uses: actions/upload-artifact@v3
# with:
# name: ${{ env.APK_NAME }}
# path: ${{ env.APK_NAME }}