-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
49 lines (41 loc) · 1.61 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
name: build
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
name: ./gradlew build (JDK 21)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
# Wrapper-validation guards against a tampered gradle-wrapper.jar
# — the standard supply-chain check for OSS Java repos.
validate-wrappers: true
- name: Install cosign
# Schema-bundle fetcher (per D4) shells out to `cosign verify-blob`
# against the AdCP release workflow's Sigstore signature. Building
# the adcp module triggers fetchSchemaBundle → cosign.
uses: sigstore/cosign-installer@v3
- name: Build all modules
run: ./gradlew build :build-logic:test --stacktrace
- name: Verify lockfiles are up to date
# Regenerate all lockfiles and fail the build if any file changed.
# updateLocks resolves every resolvable configuration in every subproject
# (official resolveAndLockAll pattern from Gradle docs). Gradle also
# rewrites settings-gradle.lockfile when --write-locks is active.
# Keeps checked-in lockfiles from drifting when dependencies are bumped
# without running `./gradlew updateLocks --write-locks`.
run: |
./gradlew updateLocks --write-locks -q
git diff --exit-code -- '**/gradle.lockfile' settings-gradle.lockfile