From 403dd4eb5e04aababf0febe47ddbe5a5107a50ef Mon Sep 17 00:00:00 2001 From: Nitish Sharma <73310532+itsnitish22@users.noreply.github.com> Date: Thu, 23 Jun 2022 22:22:05 +0530 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a4db6a..c58d451 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,10 +3,10 @@ name: Android Pull Request & Master CI & CD to Firebase on: pull_request: branches: - - 'main' + - 'master' push: branches: - - 'main' + - 'master' jobs: test: @@ -17,10 +17,9 @@ jobs: - name: Checkout uses: actions/checkout@v2.4.0 - name: Setup JDK - uses: actions/setup-java@v2.5.0 + uses: actions/setup-java@v1 with: - distribution: 'temurin' - java-version: '11' + java-version: '1.8' - name: Set execution flag for gradlew run: chmod +x gradlew - name: Unit tests @@ -33,10 +32,9 @@ jobs: steps: - uses: actions/checkout@v2.4.0 - name: Setup JDK - uses: actions/setup-java@v2.5.0 + uses: actions/setup-java@v1 with: - distribution: 'temurin' - java-version: '11' + java-version: '1.8' - name: build release run: bash ./gradlew assembleDebug - name: upload artifact to Firebase App Distribution @@ -54,10 +52,9 @@ jobs: steps: - uses: actions/checkout@v2.4.0 - name: Setup JDK - uses: actions/setup-java@v2.5.0 + uses: actions/setup-java@v1 with: - distribution: 'temurin' - java-version: '11' + java-version: '1.8' - name: Set execution flag for gradlew run: chmod +x gradlew - name: Build debug APK