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