mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-01-17 02:17:06 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Docker tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- Dockerfile
|
|
- run-in-docker.sh
|
|
- pom.xml
|
|
- modules/openapi-generator-online/pom.xml
|
|
- modules/openapi-generator-online/Dockerfile
|
|
- modules/openapi-generator-cli/pom.xml
|
|
- modules/openapi-generator-cli/Dockerfile
|
|
pull_request:
|
|
paths:
|
|
- Dockerfile
|
|
- run-in-docker.sh
|
|
- pom.xml
|
|
- modules/openapi-generator-online/pom.xml
|
|
- modules/openapi-generator-online/Dockerfile
|
|
- modules/openapi-generator-cli/pom.xml
|
|
- modules/openapi-generator-cli/Dockerfile
|
|
jobs:
|
|
build:
|
|
name: 'Build: Docker'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Test run-in-docker.sh
|
|
shell: bash
|
|
run: |
|
|
sed -i 's/ -it / /g' run-in-docker.sh
|
|
./run-in-docker.sh mvn -B 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/ -t test
|
|
- name: Build and test modules/openapi-generator-cli
|
|
shell: bash
|
|
run: |
|
|
cp docker-entrypoint.sh ./modules/openapi-generator-cli
|
|
docker build modules/openapi-generator-cli/ -t cli-test
|
|
docker run --rm -v "${PWD}:/local" cli-test generate \
|
|
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
|
-g go \
|
|
-o /local/out/go
|