diff --git a/.github/actions/ktlint_check/action.yml b/.github/actions/ktlint_check/action.yml index 08d84cb2..ad430fa0 100644 --- a/.github/actions/ktlint_check/action.yml +++ b/.github/actions/ktlint_check/action.yml @@ -31,16 +31,20 @@ runs: - name: Create Local Properties shell: bash run: touch local.properties + working-directory: ./android - name: Access Local Properties shell: bash run: | echo POKE_BASE_URL=\"${{ inputs.POKE_BASE_URL }}\" >> local.properties + working-directory: ./android - name: Grant execute permission for gradlew shell: bash run: chmod +x gradlew + working-directory: ./android - name: Lint Check shell: bash run: ./gradlew ktlintCheck + working-directory: ./android diff --git a/.github/actions/unit_test/action.yml b/.github/actions/unit_test/action.yml index d457dc82..28700e99 100644 --- a/.github/actions/unit_test/action.yml +++ b/.github/actions/unit_test/action.yml @@ -48,20 +48,25 @@ runs: echo ${{ inputs.GOOGLE_SERVICES_ALPHA }} >> ./app/src/alpha/google-services.json echo ${{ inputs.GOOGLE_SERVICES_BETA }} >> ./app/src/beta/google-services.json echo ${{ inputs.GOOGLE_SERVICES }} >> ./app/src/release/google-services.json + working-directory: ./android - name: Create Local Properties shell: bash run: touch local.properties + working-directory: ./android - name: Access Local Properties shell: bash run: | echo POKE_BASE_URL=\"${{ inputs.POKE_BASE_URL }}\" >> local.properties + working-directory: ./android - name: Grant execute permission for gradlew shell: bash run: chmod +x gradlew + working-directory: ./android - name: Run Alpha Unit Tests shell: bash run: ./gradlew testAlphaUnitTest + working-directory: ./android \ No newline at end of file diff --git a/.github/workflows/Android_Develop_PR_CI.yml b/.github/workflows/Android_Develop_PR_CI.yml index 8969d4e0..e8feb57d 100644 --- a/.github/workflows/Android_Develop_PR_CI.yml +++ b/.github/workflows/Android_Develop_PR_CI.yml @@ -13,10 +13,6 @@ jobs: name: ktLint Check runs-on: ubuntu-latest - defaults: - run: - working-directory: ./android - steps: - uses: actions/checkout@v4 - name: Run ktLint Check