From de3898375be901d58902b87b6fd3b1d6a07223fe Mon Sep 17 00:00:00 2001 From: Umer Farooq <35717992+umer0586@users.noreply.github.com> Date: Wed, 23 Oct 2024 14:41:42 +0500 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..92d7ac7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Test Android Project + +on: + workflow_dispatch: + push: + branches: [ "main" ] + paths-ignore: + - '**/README.md' + - 'fastlane/**' + - /.github/workflows/build.yml + - /.github/workflows/test.yml + pull_request: + branches: [ "main" ] + paths-ignore: + - '**/README.md' + - 'fastlane/**' + + + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 19 + uses: actions/setup-java@v4 + with: + java-version: '19' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Test with Gradle + run: ./gradlew test