Skip to content

Commit

Permalink
feat(ci): Enhance Android CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
syxc committed Aug 25, 2024
1 parent 4576d67 commit be225ad
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: CI

on:
pull_request: { }
workflow_dispatch: { }
pull_request: {}
workflow_dispatch: {}
push:
branches:
- master
Expand All @@ -13,7 +13,7 @@ concurrency:
cancel-in-progress: true

jobs:
build:
build-and-test:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,11 +23,21 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
java-version: "17"
distribution: "corretto"

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Run tests
run: ./gradlew test

- name: Upload test results
uses: actions/upload-artifact@v2
if: always()
with:
name: test-results
path: "**/build/test-results/test"

0 comments on commit be225ad

Please sign in to comment.