From bf22f19fbc5b4531bd8d5f17a7430bf20d93b641 Mon Sep 17 00:00:00 2001 From: fartem Date: Tue, 27 Jul 2021 08:36:49 +0300 Subject: [PATCH] 2021-07-27 v. 1.0.1: added GitHub Action workflow --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ README.md | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..25ce623 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + GRADLE_OPTS: -Dorg.gradle.daemon=false + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Gradle + run: ./gradlew build diff --git a/README.md b/README.md index 9a2728f..3431e67 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ You can run plugin as Gradle task: Read [Commit Convention](https://github.com/fartem/repository-rules/blob/master/commit-convention/COMMIT_CONVENTION.md). Make sure your build is green before you contribute your pull request. Then: ```shell -./gradlew clean build +$ ./gradlew clean +$ ./gradlew build ``` ## Contributors