Skip to content

Commit

Permalink
Update groovy-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekvr1 authored Oct 7, 2023
1 parent bac06df commit 63b192d
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/groovy-check.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
name: Groovy CI
name: Groovy Check

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

groovy-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: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v1
with:
arguments: check
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: build/libs/*.jar
- name: Set up Groovy
uses: actions/setup-java@v3
with:
java-version: '11'

- name: Check Groovy code
run: |
gradle groovy
- name: Fail if there are any errors
if: ${{ steps.groovy-check.outputs.exitCode != 0 }}
run: echo "Groovy check failed!"

0 comments on commit 63b192d

Please sign in to comment.