diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8efeb55..ae91a60 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,8 +1,8 @@ name: CI on: - pull_request: { } - workflow_dispatch: { } + pull_request: {} + workflow_dispatch: {} push: branches: - master @@ -13,7 +13,7 @@ concurrency: cancel-in-progress: true jobs: - build: + build-and-test: runs-on: ubuntu-latest steps: @@ -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"