File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : github-actions
4+ directory : " /"
5+ commit-message :
6+ prefix : deps(ghactions)
7+ schedule :
8+ interval : " weekly"
9+ labels : [dependencies]
10+
11+ - package-ecosystem : gradle
12+ directory : /
13+ schedule :
14+ interval : weekly
15+ day : monday
16+ commit-message :
17+ prefix : deps(java)
18+ labels : [dependencies]
Original file line number Diff line number Diff line change 1+ name : Build, test and validate (reusable workflow)
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ gradle-options :
7+ type : string
8+ description : " Any extra options to be passed to gradle"
9+ required : false
10+ default : " "
11+
12+ os :
13+ type : string
14+ description : " OS to run on."
15+ required : true
16+ default : " ubuntu-latest"
17+
18+ jdk-version :
19+ type : string
20+ required : true
21+ description : " JDK version to use."
22+
23+ run-tests :
24+ description : " Run tests"
25+ type : boolean
26+ default : true
27+
28+ jobs :
29+ build-and-test :
30+ name : test and assemble (JDK ${{ inputs.jdk-version }} on ${{ inputs.os }})
31+ runs-on : ${{ inputs.os }}
32+ timeout-minutes : 30
33+
34+ env :
35+ CI : true
36+
37+ steps :
38+ - uses : carrotsearch/infra-public/.github/actions/prepare-git-clone@master
39+ with :
40+ token : ${{ secrets.GH_ACCESS_TOKEN }}
41+
42+ - uses : carrotsearch/infra-public/.github/actions/prepare-gradle-build@master
43+ with :
44+ jdk-version : ${{ inputs.jdk-version }}
45+
46+ - name : Run validation checks
47+ run : ./gradlew check assemble ${{ inputs.gradle-options }}
Original file line number Diff line number Diff line change 1+ name : Build and test (on commits and PRs)
2+
3+ on :
4+ workflow_dispatch :
5+ # Allow manual dispatch.
6+
7+ pull_request :
8+ branches :
9+ - main
10+
11+ push :
12+ branches :
13+ - main
14+
15+ jobs :
16+ tests :
17+ name : run checks
18+
19+ strategy :
20+ matrix :
21+ os : [ ubuntu-latest ]
22+ jdk-version : [ '21', '25' ]
23+
24+ uses : ./.github/workflows/build-and-test.yml
25+ secrets : inherit
26+ with :
27+ gradle-options :
28+ os : ${{ matrix.os }}
29+ jdk-version : ${{ matrix.jdk-version }}
You can’t perform that action at this time.
0 commit comments