Skip to content

Commit

Permalink
Move Gradle wrapper and precommit checks into OpenSearch repo. (opens…
Browse files Browse the repository at this point in the history
…earch-project#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>
  • Loading branch information
dblock committed Dec 8, 2021
1 parent 1c598d1 commit 2f77500
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions .github/workflows/wrapper.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2f77500

Please sign in to comment.