Update chapter recognition and related tests

Includes 3e07100dc2

Co-authored-by: Saud-97 <Saud-97@users.noreply.github.com>
This commit is contained in:
arkon
2022-08-13 12:37:02 -04:00
parent 34ac39e7e5
commit 4a71022a60
13 changed files with 299 additions and 1180 deletions

View File

@@ -5,6 +5,10 @@ on:
- '**.md'
- 'app/src/main/res/**/strings.xml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
@@ -21,7 +25,7 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- name: Dependency Review
uses: actions/dependency-review-action@v1
uses: actions/dependency-review-action@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
@@ -29,7 +33,7 @@ jobs:
java-version: 11
distribution: adopt
- name: Build app
- name: Build app and run unit tests
uses: gradle/gradle-command-action@v2
with:
arguments: assembleStandardRelease
arguments: assembleStandardRelease testStandardReleaseUnitTest

View File

@@ -6,18 +6,16 @@ on:
tags:
- v*
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build app
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
all_but_latest: true
- name: Clone repo
uses: actions/checkout@v3
@@ -30,10 +28,10 @@ jobs:
java-version: 11
distribution: adopt
- name: Build app
- name: Build app and run unit tests
uses: gradle/gradle-command-action@v2
with:
arguments: assembleStandardRelease
arguments: assembleStandardRelease testStandardReleaseUnitTest
# Sign APK and create release for tags

View File

@@ -1,16 +0,0 @@
name: Cancel old pull request workflows
on:
workflow_run:
workflows: ["PR build check"]
types:
- requested
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- uses: styfle/cancel-workflow-action@0.9.1
with:
all_but_latest: true
workflow_id: ${{ github.event.workflow.id }}