Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyo committed May 3, 2024
1 parent 6f84ae9 commit 51bf64a
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
push:
branches:
- main
- build
pull_request:

concurrency:
Expand All @@ -20,13 +20,13 @@ jobs:
uses: actions/checkout@v3

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

- 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
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
Expand All @@ -46,29 +46,15 @@ jobs:
key: gradle-${{ hashFiles('checksum.txt') }}

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

- name: Check spotless
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache --stacktrace

- name: Check lint
run: ./gradlew lintDebug --stacktrace
- name: Build Release
run: ./gradlew assembleRelease --stacktrace

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

# - name: Run local tests
# run: ./gradlew testDebug testProdDebug --stacktrace

# - name: Upload build outputs (APKs)
# uses: actions/upload-artifact@v3
# with:
# name: build-outputs
# path: app/build/outputs

- name: Upload build reports
if: always()
uses: actions/upload-artifact@v3
- name: Upload Apk
uses: softprops/action-gh-release@v1
with:
name: build-reports
path: app/build/reports
files: app/build/outputs/apk/release/app-release.apk

0 comments on commit 51bf64a

Please sign in to comment.