mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +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]
|
||||
|
||||
concurrency:
|
||||
group: build-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
|
|
@ -11,11 +15,11 @@ jobs:
|
|||
- name: set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
java-version: 1.8
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage
|
||||
- name: Upload Test Report
|
||||
run: |
|
||||
curl -Os https://uploader.codecov.io/latest/linux/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