Skip to content

Merge pull request #12 from gpc/matrei/merge-4.0.x-into-5.0.x #24

Merge pull request #12 from gpc/matrei/merge-4.0.x-into-5.0.x

Merge pull request #12 from gpc/matrei/merge-4.0.x-into-5.0.x #24

Workflow file for this run

name: "Build"
on:
push:
branches:
- '5.x.x'
pull_request:
branches:
- '5.x.x'
jobs:
test_project:
name: "Test Project"
runs-on: ubuntu-24.04
if: github.event_name == 'pull_request'
steps:
- name: "πŸ“₯ Checkout repository"
uses: actions/checkout@v4
- name: "β˜•οΈ Setup JDK"
uses: actions/setup-java@v4
with:
java-version: 8
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "πŸƒ Run Tests"
run: ./gradlew check --continue
build_project:
name: "Build Project and Publish Snapshot release"
runs-on: ubuntu-20.04
if: github.event_name == 'push'
steps:
- name: "πŸ“₯ Checkout repository"
uses: actions/checkout@v4
- name: "β˜•οΈ Setup JDK"
uses: actions/setup-java@v4
with:
java-version: 8,
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "πŸ”¨ Build Project"
run: ./gradlew build --continue
- name: "πŸ“€ Publish Snapshot version to Artifactory (repo.grails.org)"
if: success()
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./gradlew publish