mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(ci): remove useless job
This commit is contained in:
@@ -288,57 +288,3 @@ jobs:
|
|||||||
ls -R dist
|
ls -R dist
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test-android:
|
|
||||||
name: Test Android
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node.js v22
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 22
|
|
||||||
cache: 'yarn'
|
|
||||||
|
|
||||||
- name: Setup Java 17
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: '17'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
for i in 1 2 3; do
|
|
||||||
echo "yarn install attempt $i"
|
|
||||||
yarn install --frozen-lockfile --ignore-engines --network-timeout 100000 --network-concurrency 1 && break
|
|
||||||
sleep 5
|
|
||||||
[ "$i" = "3" ] && exit 1
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Build React App
|
|
||||||
run: yarn build
|
|
||||||
env:
|
|
||||||
CI: ''
|
|
||||||
|
|
||||||
- name: Sync Capacitor
|
|
||||||
run: npx cap sync android
|
|
||||||
|
|
||||||
- name: Build Android APK
|
|
||||||
run: |
|
|
||||||
cd android
|
|
||||||
chmod +x gradlew
|
|
||||||
./gradlew assembleDebug
|
|
||||||
|
|
||||||
- name: Verify APK exists
|
|
||||||
run: |
|
|
||||||
APK=$(find android/app/build/outputs/apk -name "*.apk" | head -n 1)
|
|
||||||
if [ -n "$APK" ]; then
|
|
||||||
echo "✓ APK built successfully: $APK"
|
|
||||||
ls -lh "$APK"
|
|
||||||
else
|
|
||||||
echo "✗ No APK found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user