Skip to content

Commit 71a6901

Browse files
authored
Add GitHub workflow to test Clojure client (#22004)
* add workflow to test clojure client; * add file * run tests * remove server * Revert "remove server" This reverts commit bda9143. * clean up circleci
1 parent f1a273d commit 71a6901

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Samples Clojure Client
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/petstore/clojure/**
7+
pull_request:
8+
paths:
9+
- samples/client/petstore/clojure/**
10+
jobs:
11+
build:
12+
name: Build Clojure Client (JDK11)
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
sample:
18+
- samples/client/petstore/clojure/
19+
services:
20+
petstore-api:
21+
image: swaggerapi/petstore
22+
ports:
23+
- 80:8080
24+
env:
25+
SWAGGER_HOST: http://petstore.swagger.io
26+
SWAGGER_BASE_PATH: /v2
27+
steps:
28+
- uses: actions/checkout@v5
29+
- name: Add hosts to /etc/hosts
30+
run: |
31+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
32+
- uses: actions/setup-java@v5
33+
with:
34+
distribution: 'temurin'
35+
java-version: 11
36+
- name: Cache maven dependencies
37+
uses: actions/cache@v4
38+
env:
39+
cache-name: maven-repository
40+
with:
41+
path: |
42+
~/.m2
43+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
44+
- name: Install Leiningen (if using Leiningen)
45+
run: |
46+
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > lein
47+
chmod +x lein
48+
sudo mv lein /usr/local/bin/
49+
- name: Run tests (Leiningen)
50+
working-directory: ${{ matrix.sample }}
51+
run: lein test

CI/circle_parallel.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,5 @@ else
120120
(cd samples/client/petstore/scala-sttp && mvn integration-test)
121121
(cd samples/client/petstore/scala-sttp-circe && mvn integration-test)
122122
(cd samples/client/petstore/scala-sttp4 && mvn integration-test)
123-
(cd samples/client/petstore/clojure && mvn integration-test)
124123

125124
fi

samples/client/petstore/clojure/.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)