Skip to content

Commit 9a894e3

Browse files
committed
refactor scala client server workflow for testing
1 parent 71a6901 commit 9a894e3

4 files changed

Lines changed: 48 additions & 11 deletions

File tree

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

.github/workflows/samples-scala.yaml renamed to .github/workflows/samples-scala-server.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
name: Samples Scala/sbt
1+
name: Samples Scala/sbt server
22

33
on:
44
push:
55
paths:
6-
- 'samples/client/petstore/scala**'
76
- 'samples/server/petstore/scala**'
87
pull_request:
98
paths:
10-
- 'samples/client/petstore/scala**'
119
- 'samples/server/petstore/scala**'
1210
jobs:
1311
build:
14-
name: Build sbt/Scala client, servers
12+
name: Build sbt/Scala
1513
runs-on: ubuntu-latest
1614
strategy:
1715
fail-fast: false
1816
matrix:
1917
sample:
20-
# clients
21-
- samples/client/petstore/scalaz
22-
- samples/client/petstore/scala-pekko
23-
- samples/client/petstore/scala-http4s
24-
- samples/client/petstore/scala-sttp4-jsoniter
25-
#- samples/client/petstore/scala-sttp
26-
#- samples/client/petstore/scala-sttp-circe
2718
# servers
2819
- samples/server/petstore/scala-play-server
2920
- samples/server/petstore/scala-akka-http-server

samples/client/petstore/scala-akka/.openapi-generator-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
2424
pom.xml
25+
26+

samples/server/petstore/scala-cask/.openapi-generator-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#
25+
#
26+
#

0 commit comments

Comments
 (0)