mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-29 21:10:55 +00:00
Add tests for Dockerfile, run-in-docker.sh (#15657)
* add tests for docker, run-in-docker.sh * remove it * use 11 * more tests * trigger build failure * Revert "trigger build failure" This reverts commit 47fb248ca01d89b7376236102656b0879e38e2cf. * fix build
This commit is contained in:
parent
4d52bf656e
commit
5afa33980c
37
.github/workflows/docker.yaml
vendored
Normal file
37
.github/workflows/docker.yaml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Docker tests
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- Dockerfile
|
||||
- run-in-docker.sh
|
||||
- pom.xml
|
||||
- modules/openapi-generator-online/pom.xml
|
||||
pull_request:
|
||||
paths:
|
||||
- Dockerfile
|
||||
- run-in-docker.sh
|
||||
- pom.xml
|
||||
- modules/openapi-generator-online/pom.xml
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: 'Build: Docker'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Test run-in-docker.sh
|
||||
shell: bash
|
||||
run: |
|
||||
sed -i 's/ -it / /g' run-in-docker.sh
|
||||
./run-in-docker.sh mvn clean install
|
||||
|
||||
- name: Build Dockerfile
|
||||
shell: bash
|
||||
run: docker build .
|
||||
|
||||
- name: Build modules/openapi-generator-online
|
||||
shell: bash
|
||||
run: docker build modules/openapi-generator-online/
|
Loading…
x
Reference in New Issue
Block a user