diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-12-06 23:49:29 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 18:19:29 +0000 |
commit | 968507aba0c7b7bb7c3df0ee1bd6caa8bd0fcc9f (patch) | |
tree | bb6c0dbc3381c5314953d99d0581d0a99b700388 /.github/workflows/pull_request.yml | |
parent | 20eae05eec21784bf57a6687b702918476b83a05 (diff) |
Convert all GHA references to normal versions (#1570)
Diffstat (limited to '.github/workflows/pull_request.yml')
-rw-r--r-- | .github/workflows/pull_request.yml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 964bf9ce..4831b791 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + uses: actions/checkout@v2.4.0 with: fetch-depth: 0 - name: Check if relevant files have changed - uses: actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293 + uses: actions/github-script@v4.0.0 id: service-changed with: result-encoding: string @@ -24,10 +24,13 @@ jobs: const script = require('.github/check-changed-files.js') return await script({github, context}) - - uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 + - name: Set up JDK if: ${{ steps.service-changed.outputs.result == 'true' }} - with: - java-version: '11' + uses : actions/setup-java@v2.4.0 + with : + distribution : 'zulu' + java-version : '11' + cache: 'gradle' - name: Copy CI gradle.properties if: ${{ steps.service-changed.outputs.result == 'true' }} @@ -35,19 +38,19 @@ jobs: - name: Build debug APKs if: ${{ steps.service-changed.outputs.result == 'true' }} - uses: gradle/gradle-build-action@cba1833ddecbbee649950c284416981928631008 + uses: gradle/gradle-build-action@v2.0.1 with: arguments: assembleFreeDebug assembleNonFreeDebug - name: Run unit tests if: ${{ steps.service-changed.outputs.result == 'true' }} - uses: gradle/gradle-build-action@cba1833ddecbbee649950c284416981928631008 + uses: gradle/gradle-build-action@v2.0.1 with: arguments: apiCheck test lintFreeDebug spotlessCheck -PslimTests - name: (Fail-only) upload test report if: failure() - uses: actions/upload-artifact@27121b0bdffd731efa15d66772be8dc71245d074 + uses: actions/upload-artifact@v2.2.4 with: name: Test report path: app/build/reports |