Skip to content

Commit

Permalink
- Fix: resolve build failure issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
azrael8576 committed Sep 30, 2023
1 parent cb4a31c commit 74a195f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/CICDTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,41 @@ concurrency:
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 90

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build all build type and flavor permutations
run: ./gradlew assemble

- name: Upload build outputs (APKs)
uses: actions/upload-artifact@v3
with:
name: APKs
path: '**/build/outputs/apk/**/*.apk'

- name: Run local tests
run: ./gradlew test

androidTest:
needs: build
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
Expand Down

0 comments on commit 74a195f

Please sign in to comment.