Skip to content

Commit 4d154ec

Browse files
committed
Build CLI and server JAR before running conformance tests
Signed-off-by: Aaron Lew <[email protected]>
1 parent da48db2 commit 4d154ec

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

.github/workflows/conformance.yml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,33 @@ on:
1010
pull_request: {}
1111

1212
jobs:
13+
build:
14+
name: Build sigstore-java cli and server jar
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
18+
with:
19+
persist-credentials: false
20+
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
23+
with:
24+
java-version: 21
25+
distribution: 'temurin'
26+
27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@748248ddd2a24f49513d8f472f81c3a07d4d50e1 # v4.4.4
29+
30+
- name: Build sigstore-java cli and server jar
31+
run: ./gradlew :sigstore-cli:serverShadowJar
32+
33+
- name: Upload JAR artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: sigstore-jar
37+
path: ${{ github.workspace }}/sigstore-cli/build/libs/sigstore-cli-server-all.jar
38+
retention-days: 1
39+
1340
conformance:
1441
strategy:
1542
matrix:
@@ -30,17 +57,11 @@ jobs:
3057
with:
3158
persist-credentials: false
3259

33-
- name: Set up JDK 21
34-
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
60+
- name: Download server jar
61+
uses: actions/download-artifact@v4
3562
with:
36-
java-version: 21
37-
distribution: 'temurin'
38-
39-
- name: Setup Gradle
40-
uses: gradle/actions/setup-gradle@748248ddd2a24f49513d8f472f81c3a07d4d50e1 # v4.4.4
41-
42-
- name: Build sigstore-java cli and server jar
43-
run: ./gradlew -Porg.gradle.java.installations.auto-download=false :sigstore-cli:serverShadowJar
63+
name: sigstore-jar
64+
path: ${{ github.workspace }}/sigstore-cli/build/libs/
4465

4566
- name: Start test server in background
4667
run: java -jar ${{ github.workspace }}/sigstore-cli/build/libs/sigstore-cli-server-all.jar &

0 commit comments

Comments
 (0)