Skip to content

Commit

Permalink
Moved Gradle check into OpenSearch repo
Browse files Browse the repository at this point in the history
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed Dec 7, 2021
1 parent 33d8677 commit 0c818d8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Gradle Check
on: [pull_request]

jobs:
check:
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: |
echo "./gradlew check --no-daemon --no-scan"
./gradlew check --no-daemon --no-scan
GRADLE_CHECK_STATUS=$?
cd ../
REPORTS_DIR=`find ./search -name reports`
zip -9 -q -r gradle_check_${BUILD_NUMBER}_reports.zip ${REPORTS_DIR}
ls | grep "gradle_check_${BUILD_NUMBER}"
if [ "$GRADLE_CHECK_STATUS" != 0 ]
then
echo Gradle Check Failed!
exit 1
fi

0 comments on commit 0c818d8

Please sign in to comment.