diff --git a/.github/workflows/build+deploy.yml b/.github/workflows/build+deploy.yml index cead3eea..719f96e9 100644 --- a/.github/workflows/build+deploy.yml +++ b/.github/workflows/build+deploy.yml @@ -7,9 +7,14 @@ on: - mayowa/build-premise-cameraview-artifact pull_request: jobs: - ANDROID_BASE_CHECKS: + ANDROID_BUILD_CHECKS: name: Base Checks runs-on: ubuntu-latest + needs: [ ANDROID_UNIT_TESTS, ANDROID_EMULATOR_TESTS ] + env: + ARTIFACTORY_URL: https://premise.jfrog.io/premise + ARTIFACTORY_USERNAME: bot-travis-ci + ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v2 @@ -18,7 +23,7 @@ jobs: distribution: temurin cache: gradle - name: Perform base checks - run: ./gradlew build --stacktrace + run: ./gradlew build artifactoryPublish --stacktrace ANDROID_UNIT_TESTS: name: Unit Tests runs-on: ubuntu-latest @@ -60,22 +65,4 @@ jobs: disable-animations: true profile: Nexus 5X emulator-options: -no-snapshot -no-window -no-boot-anim -camera-back emulated -camera-front emulated -gpu swiftshader_indirect - script: ./.github/workflows/emulator_script.sh - MAVEN_UPLOAD: - name: Maven Upload - runs-on: ubuntu-latest - needs: [ANDROID_UNIT_TESTS, ANDROID_EMULATOR_TESTS, ANDROID_BASE_CHECKS] - env: - ARTIFACTORY_URL: https://premise.jfrog.io/premise - ARTIFACTORY_USERNAME: bot-travis-ci - ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 - with: - java-version: 11 - distribution: temurin - cache: gradle - - name: Perform maven upload - run: ./gradlew artifactoryPublish \ No newline at end of file + script: ./.github/workflows/emulator_script.sh \ No newline at end of file