forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hippo/unalias
* master: (984 commits) add structPrefix support to go-experimental (OpenAPITools#7327) Add a link to SmartHR Tech Blog (OpenAPITools#7324) Revert "Correct allOf with only one child schema (no discriminator)" (OpenAPITools#7323) Correct allOf with only one child schema (no discriminator) (OpenAPITools#6901) [Go]: Interface definitions for api functions (OpenAPITools#5914) Update bug_report.md (OpenAPITools#7320) update samples [Java][Client] Use java8 OffsetDateTime for clients (OpenAPITools#7190) [java] Intro openApiNullable property to enable/disable OpenAPI Jackson Nullable library (OpenAPITools#6154) [Spring Boot] update dependencies, mark java8 option as deprecated (OpenAPITools#7306) Remove dot in golang type (OpenAPITools#7307) [doc] Document usage of post-process file feature (OpenAPITools#7315) fix http bear auth documentation for go clinets (OpenAPITools#7312) [Extensions][Go][Java] Test x-auth-id-alias (OpenAPITools#6642) [php-slim4] Move config to a separate file (OpenAPITools#6971) [C][Client][Clang Static Analyzer] Remove the useless free operation for (OpenAPITools#7309) Fix typescript-node generation when only models are generated (OpenAPITools#7127) update spring config to use java8 (OpenAPITools#7308) [C][Client][Clang Static Analyzer] Fix uninitialized argument value (OpenAPITools#7305) [Java] remove deprecated jackson classes (OpenAPITools#7304) ...
- Loading branch information
Showing
19,493 changed files
with
643,033 additions
and
719,134 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Check Supported Java Versions | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build on JDK ${{ matrix.java }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
java: [8, 11] | ||
os: [ubuntu-latest] | ||
include: | ||
- java: 8 | ||
os: windows-latest | ||
- java: 13 | ||
os: ubuntu-latest | ||
# Need to update to Gradle version with v13 support in modules/openapi-generator-gradle-plugin/pom.xml | ||
flags: -am -pl modules/openapi-generator-cli | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Build with Maven | ||
shell: bash | ||
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }} | ||
|
||
- name: Test gradle | ||
shell: bash | ||
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace | ||
|
||
- name: Upload Maven build artifact | ||
uses: actions/upload-artifact@v1 | ||
if: matrix.java == '8' && matrix.os == 'ubuntu-latest' | ||
with: | ||
name: artifact | ||
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar | ||
|
||
verify: | ||
name: Verifies integrity of the commit on ${{ matrix.os }} | ||
needs: build | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# include: | ||
# - os: windows-latest | ||
# flags: --skip-docs | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Download build artifact | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: artifact | ||
- name: Run Ensures Script | ||
shell: bash | ||
run: | | ||
git config --global core.fileMode false | ||
git config --global core.safecrlf false | ||
git config --global core.autocrlf true | ||
mkdir -p modules/openapi-generator-cli/target/ | ||
mv artifact/openapi-generator-cli.jar modules/openapi-generator-cli/target/ | ||
./bin/utils/ensure-up-to-date ${{ matrix.flags }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Docker Tag latest-release | ||
|
||
# Run every couple of days | ||
on: | ||
schedule: | ||
- cron: "30 12 */2 * *" | ||
|
||
jobs: | ||
# This pulls all containers for the last known release tag, and tags as latest-release or x-latest-release for shared repo | ||
tagLatestRelease: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# Pull the code so we have git metadata | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# This action will "unshallow" so we have all tag info | ||
- name: Get latest tag | ||
id: tagger | ||
uses: jimschubert/query-tag-action@v1 | ||
with: | ||
include: 'v*' | ||
exclude: '*-rc*' | ||
commit-ish: 'HEAD~' | ||
|
||
- name: DockerHub Login | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
|
||
# Tags openapitools/openapi-generator-cli | ||
- name: "Tag openapi-generator-cli:x" | ||
id: tag-openapi-generator-cli | ||
if: always() | ||
run: | | ||
echo 'Tagging as latest-release: ${{steps.tagger.outputs.tag}}' | ||
docker pull openapitools/openapi-generator-cli:${{steps.tagger.outputs.tag}} | ||
docker tag openapitools/openapi-generator-cli:${{steps.tagger.outputs.tag}} openapitools/openapi-generator-cli:latest-release | ||
docker push openapitools/openapi-generator-cli:latest-release | ||
# Tags openapitools/openapi-generator-online | ||
- name: "Tag openapi-generator-online:x" | ||
id: tag-openapi-generator-online | ||
if: always() | ||
run: | | ||
echo 'Tagging as latest-release: ${{steps.tagger.outputs.tag}}' | ||
docker pull openapitools/openapi-generator-online:${{steps.tagger.outputs.tag}} | ||
docker tag openapitools/openapi-generator-online:${{steps.tagger.outputs.tag}} openapitools/openapi-generator-online:latest-release | ||
docker push openapitools/openapi-generator-online:latest-release | ||
# Tags openapitools/openapi-generator's CLI image (this repo holds CLI + Online via tag prefix) | ||
- name: "Tag openapi-generator:cli-x" | ||
id: tag-cli | ||
if: always() | ||
run: | | ||
echo 'Tagging as latest-release: ${{steps.tagger.outputs.tag}}' | ||
docker pull openapitools/openapi-generator:cli-${{steps.tagger.outputs.tag}} | ||
docker tag openapitools/openapi-generator:cli-${{steps.tagger.outputs.tag}} openapitools/openapi-generator:cli-latest-release | ||
docker push openapitools/openapi-generator:cli-latest-release | ||
# Tags openapitools/openapi-generator's ONLINE image (this repo holds CLI + Online via tag prefix) | ||
- name: "Tag openapi-generator:online-x" | ||
id: tag-online | ||
if: always() | ||
run: | | ||
echo 'Tagging as latest-release: ${{steps.tagger.outputs.tag}}' | ||
docker pull openapitools/openapi-generator:online-${{steps.tagger.outputs.tag}} | ||
docker tag openapitools/openapi-generator:online-${{steps.tagger.outputs.tag}} openapitools/openapi-generator:online-latest-release | ||
docker push openapitools/openapi-generator:online-latest-release | ||
# Clean up docker credentials/configs/etc. | ||
- name: Cleanup | ||
if: always() | ||
run: | | ||
rm -f ${HOME}/.docker/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.