-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (43 loc) · 1.34 KB
/
spring-gradle-ci.yml
File metadata and controls
54 lines (43 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Continuous Integration Build for Gradle
# This workflow is designed with an assumption that the target project supports the 'testJavaVersion' property.
# Usually for testing scope:
#
# tasks.withType(Test).configureEach {
# javaLauncher = javaToolchains.launcherFor {
# languageVersion = JavaLanguageVersion.of(project.findProperty('testJavaVersion') ?: 25)
# }
# }
on:
workflow_call:
inputs:
testJavaVersion:
description: 'Java version for testing'
required: true
type: string
runner:
description: 'The runner for job'
required: false
type: string
default: ubuntu-latest
secrets:
DEVELOCITY_ACCESS_KEY:
required: false
ARTIFACTORY_USERNAME:
required: false
ARTIFACTORY_PASSWORD:
required: false
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
jobs:
ci-with-gradle:
name: CI for ${{ github.ref_name }}
runs-on: ${{ inputs.runner }}
steps:
- uses: actions/checkout@v6
with:
show-progress: false
- uses: spring-io/spring-gradle-build-action@v2
- name: CI Build
run: ./gradlew test -PtestJavaVersion=${{ inputs.testJavaVersion }}