Move Gradle wrapper and precommit checks into OpenSearch repo. (#1664)

* Move Gradle checks into OpenSearch repo.

Signed-off-by: dblock <dblock@amazon.com>

* Use working-directory for gradle wrapper validation.

Signed-off-by: dblock <dblock@amazon.com>

* Use https://github.com/gradle/wrapper-validation-action.

Signed-off-by: dblock <dblock@amazon.com>
This commit is contained in:
Daniel Doubrovkine (dB.) 2021-12-08 04:06:52 +00:00 committed by GitHub
parent 33d8677796
commit e983facc16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

16
.github/workflows/precommit.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Gradle Precommit
on: [pull_request]
jobs:
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt
- name: Run Gradle
run: |
./gradlew precommit --parallel

10
.github/workflows/wrapper.yml vendored Normal file
View File

@ -0,0 +1,10 @@
name: Validate Gradle Wrapper
on: [push, pull_request]
jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1