This commit is contained in:
Erik C. Thauvin 2020-07-27 03:40:15 -07:00
parent b0e0149412
commit de1325cc06
5 changed files with 17 additions and 25 deletions

View file

@ -49,6 +49,6 @@ jobs:
workflows: workflows:
version: 2 version: 2
gradle: gradle:
jobs: jobs:
- build_gradle_jdk8 - build_gradle_jdk8
- build_gradle_jdk14 - build_gradle_jdk14

View file

@ -1,25 +1,18 @@
name: Java CI with Gradle name: Java CI with Gradle
on: on: [push, pull_request, workflow_dispatch]
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- 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: Grant execute permission for gradlew - name: Grant execute permission for gradlew
run: chmod +x gradlew run: chmod +x gradlew
- name: Test with Gradle - name: Test with Gradle
run: ./gradlew check run: ./gradlew check

View file

@ -2,7 +2,6 @@ image: gradle:alpine
variables: variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false" GRADLE_OPTS: "-Dorg.gradle.daemon=false"
CI: "true"
before_script: before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle - export GRADLE_USER_HOME=`pwd`/.gradle

View file

@ -21,6 +21,6 @@ before_install:
after_success: after_success:
- | - |
if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == "openjdk14" ]; then if [ "${TRAVIS_TEST_RESULT}" == 0 ] && [ "$TRAVIS_JDK_VERSION" == "openjdk14" ]; then
./gradlew sonarqube ./gradlew sonarqube
fi fi

View file

@ -53,7 +53,7 @@ A couple of useful functions are also available:
```kotlin ```kotlin
ReadingTime.wordCount(htmlText) // Returns the count of words. (HTML stripped) ReadingTime.wordCount(htmlText) // Returns the count of words. (HTML stripped)
ReadingTime.imgCount(htmlText) // Returns the count of images. (img HTML tags) ReadingTime.imgCount(htmlText) // Returns the count of images. (HTML img tags)
``` ```
### Gradle ### Gradle