Skip to content

Commit 8859ece

Browse files
committed
ci 优化
1 parent f743374 commit 8859ece

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

.github/workflows/client.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- '.github/workflows/client.yml'
1616

1717
jobs:
18-
build:
18+
check:
1919
runs-on: ubuntu-latest
2020
defaults:
2121
run:
@@ -33,26 +33,17 @@ jobs:
3333

3434
- name: Grant execute permission for gradlew
3535
run: chmod +x gradlew
36-
- name: Build with Gradle
37-
run: ./gradlew assembleRelease --no-daemon
38-
39-
- name: Run unit tests
40-
run: ./gradlew testDebugUnitTest --no-daemon
4136

4237
- name: Lint
4338
run: ./gradlew lintDebug --no-daemon
4439

45-
- name: Upload APK
46-
uses: actions/upload-artifact@v4
47-
with:
48-
name: debug-apk
49-
path: client/app/build/outputs/apk/local/debug/*.apk
50-
retention-days: 7
40+
- name: Run unit tests
41+
run: ./gradlew testDebugUnitTest --no-daemon
5142

5243
release:
5344
runs-on: ubuntu-latest
5445
if: startsWith(github.ref, 'refs/tags/v')
55-
needs: [build]
46+
needs: [check]
5647
defaults:
5748
run:
5849
working-directory: client

0 commit comments

Comments
 (0)