-
Notifications
You must be signed in to change notification settings - Fork 13
65 lines (65 loc) · 1.73 KB
/
build.yaml
File metadata and controls
65 lines (65 loc) · 1.73 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
name: "build"
on:
pull_request:
branches:
- "*"
types:
# NOTE: these are the defaults
- "opened"
- "synchronize"
- "reopened"
# NOTE: we add this to let the conversion from draft trigger the workflows
- "ready_for_review"
merge_group:
types:
- "checks_requested"
jobs:
build:
runs-on: "ubuntu-latest"
strategy:
matrix:
java: # https://endoflife.date/oracle-jdk
- 17 # Oldest
- 21 # LTS
- 25 # Latest (though also LTS)
name: "Java ${{ matrix.java }} Build"
steps:
- uses: "actions/checkout@v6"
- uses: "actions/setup-java@v5"
with:
distribution: "adopt"
java-package: "jdk"
java-version: "${{ matrix.java }}"
- uses: "bufbuild/buf-action@v1"
with:
setup_only: true
github_token: ${{ github.token }}
- uses: "gradle/actions/wrapper-validation@v5"
- name: "Gradle Build"
run: "./gradlew build"
test:
runs-on: "ubuntu-latest"
strategy:
matrix:
java: # https://endoflife.date/oracle-jdk
- 8 # Oldest
- 21 # LTS
- 24 # Latest
name: "Java ${{ matrix.java }} Test"
steps:
- uses: "actions/checkout@v6"
- uses: "actions/setup-java@v5"
with:
distribution: "adopt"
java-package: "jdk"
java-version: "${{ matrix.java }}"
- uses: "bufbuild/buf-action@v1"
with:
setup_only: true
github_token: ${{ github.token }}
- uses: "authzed/action-spicedb@v1"
with:
version: "latest"
- uses: "gradle/actions/wrapper-validation@v5"
- name: "Gradle integrationTest"
run: "./gradlew integrationTest --info"