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 b8108be commit bac06df
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions .github/workflows/groovy-check.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
name: Groovy Check
name: Groovy CI

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

jobs:
groovy-check:
runs-on: ubuntu-latest
steps:
- name: Set up Groovy
uses: actions/setup-java@v3
with:
java-version: '11'
build:

- name: Check Groovy code
run: |
gradle groovy
runs-on: ubuntu-latest

- name: Fail if there are any errors
if: ${{ steps.groovy-check.outputs.exitCode != 0 }}
run: echo "Groovy check failed!"
exit: 1
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

0 comments on commit bac06df

Please sign in to comment.