forked from asyncapi/modelina
-
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 feature/add_next_example
- Loading branch information
Showing
105 changed files
with
7,595 additions
and
3,543 deletions.
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
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,32 @@ | ||
name: Runtime testing C++ models | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
paths: | ||
- 'src/generators/cplusplus/**' | ||
- 'test/runtime/runtime-cplusplus/**' | ||
- 'test/runtime/**cplusplus**' | ||
|
||
jobs: | ||
test: | ||
name: Runtime testing C++ Models | ||
if: "github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Build library | ||
run: npm install && npm run build:prod | ||
- name: Setup Cpp (C++ / C) | ||
uses: aminya/setup-cpp@v0.28.0 | ||
- name: Generate C++ models | ||
run: npm run generate:runtime:cplusplus | ||
- name: Clone git submodules | ||
run: git submodule update --init --recursive | ||
- name: Run runtime tests | ||
run: npm run test:runtime:cplusplus |
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,33 @@ | ||
name: Runtime testing Kotlin models | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
paths: | ||
- 'src/generators/kotlin/**' | ||
- 'test/runtime/runtime-kotlin/**' | ||
- 'test/runtime/**kotlin**' | ||
|
||
jobs: | ||
test: | ||
name: Runtime testing Kotlin Models | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Build library | ||
run: npm install && npm run build:prod | ||
- name: Setup Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
- name: Generate Kotlin models | ||
run: npm run generate:runtime:kotlin | ||
- name: Run runtime tests | ||
run: npm run test:runtime:kotlin |
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,49 @@ | ||
name: Runtime testing PHP models | ||
on: | ||
push: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
paths: | ||
- 'src/generators/php/**' | ||
- 'test/runtime/runtime-php/**' | ||
- 'test/runtime/**php**' | ||
|
||
jobs: | ||
runtime-php-test: | ||
name: Runtime testing PHP ${{ matrix.php }} Models | ||
if: "github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: | ||
- 8.1 | ||
- 8.2 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Build library | ||
run: npm install && npm run build:prod | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@2.25.2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
|
||
- name: Generate Models | ||
run: npm run generate:runtime:php | ||
|
||
- name: Install PHP Dependencies | ||
uses: ramsey/composer-install@v2 | ||
with: | ||
working-directory: test/runtime/runtime-php | ||
|
||
- name: Run runtime tests | ||
run: composer test | ||
working-directory: test/runtime/runtime-php |
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,34 @@ | ||
name: Runtime Testing TypeScript Models | ||
on: | ||
push: | ||
paths: | ||
- 'src/generators/typescript/**' | ||
- 'test/runtime/runtime-typescript/**' | ||
- 'test/runtime/**typescript**' | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- 'src/generators/typescript/**' | ||
- 'test/runtime/runtime-typescript/**' | ||
- 'test/runtime/**typescript**' | ||
|
||
jobs: | ||
test: | ||
name: Runtime Testing TypeScript Models | ||
if: "github.event.pull_request.draft == false &&!((github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'ci: update global workflows')) || (github.actor == 'asyncapi-bot' && startsWith(github.event.pull_request.title, 'chore(release):')) || (github.actor == 'allcontributors' && startsWith(github.event.pull_request.title, 'docs: add')))" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- name: Build library | ||
run: npm install && npm run build:prod | ||
- name: Generate TypeScript models | ||
run: npm run generate:runtime:typescript | ||
- name: Run runtime tests | ||
run: npm run test:runtime:typescript | ||
|
||
|
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,3 @@ | ||
[submodule "test/runtime/runtime-cplusplus/src/utils/doctest"] | ||
path = test/runtime/runtime-cplusplus/src/utils/doctest | ||
url = https://github.com/doctest/doctest |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
lib | ||
node_modules | ||
modelina-website | ||
modelina-website | ||
test/runtime/runtime-** |
Oops, something went wrong.