diff --git a/.github/workflows/dev-workflow.yml b/.github/workflows/dev-workflow.yml index 1976645..d0ce119 100644 --- a/.github/workflows/dev-workflow.yml +++ b/.github/workflows/dev-workflow.yml @@ -7,17 +7,31 @@ on: - master jobs: - setup_with_build: - uses: SaifulSaif007/Splash_Image_Gallery/.github/workflows/setup-workflow.yml@git-workflow - - build_project: - needs: setup_with_build + setup_java: runs-on: macos-latest steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup JDK 19 + uses: actions/setup-java@v4 + with: + java-version: '19' + distribution: 'corretto' + cache: 'gradle' + # cache-dependency-path: | # optional + # sub-project/*.gradle* + # sub-project/**/gradle-wrapper.properties + - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew buildDebug --console=plain + env: + CLIENT_ID: ${{ secrets.CLIENT_ID }} + - name: Run Coverage run: ./gradlew clean testDebugUnitTestCoverage diff --git a/.github/workflows/setup-workflow.yml b/.github/workflows/setup-workflow.yml index dfe5c8f..8e574eb 100644 --- a/.github/workflows/setup-workflow.yml +++ b/.github/workflows/setup-workflow.yml @@ -1,28 +1,28 @@ name: Setup Workflow CI -on: workflow_call -jobs: - setup_java: - runs-on: macos-latest - - steps: - - name: checkout - uses: actions/checkout@v4 - - - name: setup JDK 19 - uses: actions/setup-java@v4 - with: - java-version: '19' - distribution: 'corretto' - cache: 'gradle' - # cache-dependency-path: | # optional - # sub-project/*.gradle* - # sub-project/**/gradle-wrapper.properties - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build with Gradle - run: ./gradlew buildDebug --console=plain - env: - CLIENT_ID: ${{ secrets.CLIENT_ID }} \ No newline at end of file +#on: workflow_call +#jobs: +# setup_java: +# runs-on: macos-latest +# +# steps: +# - name: checkout +# uses: actions/checkout@v4 +# +# - name: setup JDK 19 +# uses: actions/setup-java@v4 +# with: +# java-version: '19' +# distribution: 'corretto' +# cache: 'gradle' +# # cache-dependency-path: | # optional +# # sub-project/*.gradle* +# # sub-project/**/gradle-wrapper.properties +# +# - name: Grant execute permission for gradlew +# run: chmod +x gradlew +# +# - name: Build with Gradle +# run: ./gradlew buildDebug --console=plain +# env: +# CLIENT_ID: ${{ secrets.CLIENT_ID }} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index f99c51f..998a164 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,5 +15,5 @@ android.defaults.buildfeatures.buildconfig=true android.enableJetifier=false android.nonFinalResIds=false android.useAndroidX=true -clientID=""210rEZdu_UXkCL-ntrKQ9Ya0xsluAbLZAZSR0Y8TkJs" +clientID="210rEZdu_UXkCL-ntrKQ9Ya0xsluAbLZAZSR0Y8TkJs" org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"