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 extensions/x-auth-id-alias
* master: (355 commits) [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) Adds generator unaliasSchema method, uses it to refactor python-experimental (OpenAPITools#7274) [Rust][reqwest] prefix local variables with "local_var" (OpenAPITools#7299) [Java][jersey2]Support enum discriminator value in child objects (OpenAPITools#7267) [C][Client][Clang Static Analyzer] Fix memory leak before function returnning (OpenAPITools#7302) add extension for hashable in swift5 (OpenAPITools#7300) [kotlin][client] fix warning Extension is shadowed by a member (OpenAPITools#7286) Add wbt-solutions logo (OpenAPITools#7298) [c-sharp] Fix default values with discriminator (OpenAPITools#7296) Add x-is-json to csharp generators (OpenAPITools#7293) Add raksul (OpenAPITools#7295) Add wbt-solutions as using company (OpenAPITools#7292) [C][Client][Clang Static Analyzer] Fix memory leak in apiClient_invoke (OpenAPITools#7285) [Java][clients] remove java.lang prefix from Object (OpenAPITools#6806) [core] Add x-is-free-form vendor extension (OpenAPITools#6849) ...
- Loading branch information
Showing
9,927 changed files
with
212,746 additions
and
314,270 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
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.