forked from loafle/openapi-generator-original
38 lines
815 B
YAML
38 lines
815 B
YAML
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 ./mvnw 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/
|