Skip to content

Commit 46de9c8

Browse files
authored
separate workflow to test java with sbt (#21978)
1 parent ab6c827 commit 46de9c8

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Samples Java (sbt)
2+
3+
on:
4+
push:
5+
paths:
6+
- 'samples/client/petstore/java/okhttp-gson/**'
7+
pull_request:
8+
paths:
9+
- 'samples/client/petstore/java/okhttp-gson/**'
10+
jobs:
11+
build:
12+
name: Build sbt/Java client, servers
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
sample:
18+
# clients
19+
- samples/client/petstore/java/okhttp-gson
20+
steps:
21+
- uses: actions/checkout@v5
22+
- uses: actions/setup-java@v5
23+
with:
24+
distribution: 'temurin'
25+
java-version: 11
26+
- name: Setup sbt launcher
27+
uses: sbt/setup-sbt@v1
28+
- name: Cache maven dependencies
29+
uses: actions/cache@v4
30+
env:
31+
cache-name: maven-repository
32+
with:
33+
path: |
34+
~/.ivy2
35+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/build.sbt') }}
36+
- name: Build and test
37+
working-directory: ${{ matrix.sample }}
38+
run: sbt -v +test

.github/workflows/samples-scala.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ on:
55
paths:
66
- 'samples/client/petstore/scala**'
77
- 'samples/server/petstore/scala**'
8-
- 'samples/client/petstore/java/okhttp-gson/**'
98
pull_request:
109
paths:
1110
- 'samples/client/petstore/scala**'
1211
- 'samples/server/petstore/scala**'
13-
- 'samples/client/petstore/java/okhttp-gson/**'
1412
jobs:
1513
build:
1614
name: Build sbt/Scala client, servers
@@ -20,7 +18,6 @@ jobs:
2018
matrix:
2119
sample:
2220
# clients
23-
- samples/client/petstore/java/okhttp-gson
2421
- samples/client/petstore/scalaz
2522
- samples/client/petstore/scala-pekko
2623
- samples/client/petstore/scala-http4s

0 commit comments

Comments
 (0)