File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Docker tests
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - Dockerfile
8+ - run-in-docker.sh
9+ - pom.xml
10+ - modules/openapi-generator-online/pom.xml
11+ - modules/openapi-generator-online/Dockerfile
12+ - modules/openapi-generator-cli/pom.xml
13+ - modules/openapi-generator-cli/Dockerfile
14+ pull_request :
15+ paths :
16+ - Dockerfile
17+ - run-in-docker.sh
18+ - pom.xml
19+ - modules/openapi-generator-online/pom.xml
20+ - modules/openapi-generator-online/Dockerfile
21+ - modules/openapi-generator-cli/pom.xml
22+ - modules/openapi-generator-cli/Dockerfile
23+ jobs :
24+ build :
25+ name : ' Build: Docker'
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Check out code
29+ uses : actions/checkout@v5
30+
31+ - name : Test run-in-docker.sh
32+ shell : bash
33+ run : |
34+ sed -i 's/ -it / /g' run-in-docker.sh
35+ ./run-in-docker.sh mvn -B clean install
36+
37+ - name : Build Dockerfile
38+ shell : bash
39+ run : docker build .
40+
41+ - name : Build modules/openapi-generator-online
42+ shell : bash
43+ run : |
44+ docker build modules/openapi-generator-online/ -t test
45+ - name : Build and test modules/openapi-generator-cli
46+ shell : bash
47+ run : |
48+ cp docker-entrypoint.sh ./modules/openapi-generator-cli
49+ docker build modules/openapi-generator-cli/ -t cli-test
50+ docker run --rm -v "${PWD}:/local" cli-test generate \
51+ -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
52+ -g go \
53+ -o /local/out/go
You can’t perform that action at this time.
0 commit comments