mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 03:17:03 +05:30
github: update actions in pull request workflow
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
978d373893
commit
f3107ed19a
1 changed files with 4 additions and 4 deletions
8
.github/workflows/pull_request.yml
vendored
8
.github/workflows/pull_request.yml
vendored
|
@ -6,7 +6,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check if relevant files have changed
|
- name: Check if relevant files have changed
|
||||||
uses: actions/github-script@0.9.0
|
uses: actions/github-script@28e5ebafd79744f2a15dd15e742233b068e0f762
|
||||||
id: service-changed
|
id: service-changed
|
||||||
with:
|
with:
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
|
@ -23,20 +23,20 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
|
||||||
|
|
||||||
- name: Copy CI gradle.properties
|
- name: Copy CI gradle.properties
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||||
|
|
||||||
- uses: burrunan/gradle-cache-action@v1
|
- uses: burrunan/gradle-cache-action@61348edb3ed90fd775bd9738ac6535163f5b8c4b
|
||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
with:
|
with:
|
||||||
arguments: testDebug
|
arguments: testDebug
|
||||||
|
|
||||||
- name: (Fail-only) upload test report
|
- name: (Fail-only) upload test report
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@27bce4eee761b5bc643f46a8dfb41b430c8d05f6
|
||||||
with:
|
with:
|
||||||
name: Test report
|
name: Test report
|
||||||
path: app/build/reports
|
path: app/build/reports
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue