-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (47 loc) · 1.84 KB
/
Copy pathci.yml
File metadata and controls
55 lines (47 loc) · 1.84 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
# GENERATED FILE — do not edit it in this repository.
# This workflow is produced alongside the rest of this SDK and is overwritten
# whenever the SDK is regenerated. Raise changes where the SDK is generated.
#
# These steps mirror this SDK's own build verification, with the pinned
# maven:3-eclipse-temurin-17 image replaced by setup-java.
name: CI
on:
push:
branches: [master, main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and test (JDK 17)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
# Matches the pom's <java.version>. Bump both together.
java-version: '17'
cache: maven
- name: Package
run: mvn -B -q -DskipTests package
# Deliberately not -q: a gate should show the test count, not just its
# exit code. A run that executed zero tests must not look like a pass.
- name: Test
run: mvn -B test
# NO spotless step, deliberately. The generator's pom configures
# spotless 2.43.0 with google-java-format 1.8, and spotless refuses that
# combination on JVM 17 outright:
#
# You are running Spotless on JVM 17. This requires google-java-format
# of at least 1.10.0 (you are using 1.8).
#
# So `mvn spotless:check` fails before it formats anything — it would make
# this workflow permanently red while saying nothing about the code. The
# SDK's own build does not run it either, so Java formatting is currently
# unenforced rather than enforced in one place. Fixing that means bumping
# google-java-format in the pom and accepting a whole-tree reformat — a
# separate change from wiring up CI.