mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Cancel previous ongoing runs in the PR/branch when you push new commits (#4783)
* added cancel previous build * updated Cancel Workflow Action * added cancel previous builds * reverted unwanted changes
This commit is contained in:
parent
873b4c500b
commit
15d70bbe0a
1 changed files with 6 additions and 2 deletions
8
.github/workflows/android.yml
vendored
8
.github/workflows/android.yml
vendored
|
|
@ -2,6 +2,10 @@ name: Android CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
|
@ -11,11 +15,11 @@ jobs:
|
||||||
- name: set up JDK 1.8
|
- name: set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage
|
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage
|
||||||
- name: Upload Test Report
|
- name: Upload Test Report
|
||||||
run: |
|
run: |
|
||||||
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
chmod +x codecov
|
chmod +x codecov
|
||||||
./codecov -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml" -Z
|
./codecov -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml" -Z
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue