Skip to content

Enable micronaut joint build validation #1037

Enable micronaut joint build validation

Enable micronaut joint build validation #1037

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: "Micronaut Joint Validation Build"
on:
push:
branches:
- master
- danielsun/micronaut-joint-build-for-master
pull_request:
branches:
- master
- danielsun/micronaut-joint-build-for-master
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: true
runs-on: ubuntu-latest
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
- uses: gradle/actions/setup-gradle@v3
- name: env
run: env
# Create mavenLocal init script
- name: Create init script to enable mavenLocal()
run: cd .. && echo "allprojects { repositories { mavenLocal() } }" > maven-local-init.gradle
# Clone Micronaut Repos
- name: Checkout Micronaut Core
run: cd .. && git clone --depth 1 https://github.com/micronaut-projects/micronaut-core -b 4.4.x
- name: Checkout Micronaut Groovy
run: cd .. && git clone --depth 1 https://github.com/micronaut-projects/micronaut-groovy -b 4.1.x
- name: Build and install groovy (no docs)
run: ./gradlew --no-build-cache --no-daemon --no-scan clean install -x asciidoc -x docGDK -x groovydoc -x javadoc -x javadocAll -x groovydocAll
timeout-minutes: 60
- name: Set CI_GROOVY_VERSION
run: echo "CI_GROOVY_VERSION=$(cat gradle.properties | grep groovyVersion | cut -d\= -f2 | tr -d '[:space:]')" >> $GITHUB_ENV
- name: echo CI_GROOVY_VERSION
run: echo $CI_GROOVY_VERSION
- name: Test Micronaut Core
run: cd ../micronaut-core && ./gradlew --init-script ../maven-local-init.gradle --no-build-cache --no-daemon --no-scan clean test -x :test-suite-kotlin-ksp:test -x :discovery-core:test -x :test-suite-netty-ssl-graalvm:test -x :test-suite-kotlin:test -x :inject-kotlin:test -x :inject-kotlin-test:test -PgroovyVersion=$CI_GROOVY_VERSION
timeout-minutes: 60
- name: Check Micronaut Groovy
run: cd ../micronaut-groovy && ./gradlew --init-script ../maven-local-init.gradle --no-build-cache --no-daemon --no-scan clean check -PgroovyVersion=$CI_GROOVY_VERSION
timeout-minutes: 60