-
Notifications
You must be signed in to change notification settings - Fork 20
78 lines (67 loc) · 2.51 KB
/
Copy pathmain.yml
File metadata and controls
78 lines (67 loc) · 2.51 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (C) 2021 The Authors of CEL-Java
#
# Licensed 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: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
java:
name: Java/Gradle
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
java-version: [21, 25]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
submodules: 'true'
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6
with:
cache-read-only: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}
- name: Spotless Check
# Spotless must run in a different invocation, because
# it has some weird Gradle configuration/variant issue
if: ${{ matrix.java-version == '21' }}
run: ./gradlew spotlessCheck --scan
- name: Build
run: >
./gradlew --rerun-tasks ${{ env.ADDITIONAL_GRADLE_OPTS }}
assemble check publishToMavenLocal
-x jmh -x spotlessCheck -x testNative
--scan
- name: Quarkus native smoke
if: ${{ matrix.java-version == '21' }}
run: ./gradlew testNative --scan
- name: Build tool integrations
# The buildToolIntegration* tasks require publishToMavenLocal, run it as a separate step,
# because these tasks intentionally do not depend on the publishToMavenLocal tasks.
run: ./gradlew buildToolIntegrations
- name: Microbenchmarks
run: ./gradlew jmh
- name: Capture test results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: failure()
with:
name: test-results
path: |
**/build/reports/*
**/build/test-results/*