Skip to content

Commit

Permalink
Merge pull request #498 from grails/ghworkflow
Browse files Browse the repository at this point in the history
Create gradle.yml
  • Loading branch information
guillermocalvo authored Nov 27, 2023
2 parents 6c3fae4 + 81d7181 commit 511645f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Java CI
on:
push:
branches:
- '[3-9].[3-9].x'
pull_request:
branches:
- '[3-9].[3-9].x'
workflow_dispatch:
jobs:
test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
env:
WORKSPACE: ${{ github.workspace }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 8
- name: Run Tests
if: github.event_name == 'pull_request'
id: tests
uses: gradle/gradle-build-action@v2
with:
arguments: |
:spring-security-rest:check
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}

0 comments on commit 511645f

Please sign in to comment.