-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add npm test step CI #465
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: OpenAPI Test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
npm-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
- name: Test | ||
run: | | ||
npm install -g @apidevtools/swagger-cli | ||
npm install -g @stoplight/spectral | ||
npm run test |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,7 @@ allOf: | |
example: "T3A_LARGE" | ||
description: the instance type to be used for this cluster. The list of values can be retrieved via the endpoint /{CloudProvider}/instanceType | ||
kubernetes: | ||
$ref: ./enums/Kubernetes.yaml | ||
default: "MANAGED" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. put the default to |
||
$ref: './enums/Kubernetes.yaml' | ||
cpu: | ||
type: integer | ||
example: 10000 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type: object | ||
nullable: true | ||
required: | ||
- git_commit_id | ||
- created_at | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,10 @@ allOf: | |
service_id: | ||
type: string | ||
format: uuid | ||
description: present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
service_name: | ||
type: string | ||
description: present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
service_type: | ||
$ref: './enums/LinkedServiceType.yaml' | ||
description: present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
owned_by: | ||
type: string | ||
description: "Entity that created/own the variable (i.e: Qovery, Doppler)" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,5 @@ nullable: false | |
properties: | ||
readiness_probe: | ||
$ref: './Probe.yaml' | ||
nullable: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
liveness_probe: | ||
$ref: './Probe.yaml' | ||
nullable: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ properties: | |
type: string | ||
role: | ||
$ref: './enums/InviteMemberRole.yaml' | ||
description: deprecated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Description already in the |
||
role_id: | ||
type: string | ||
format: uuid | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
format: email | ||
role: | ||
$ref: './enums/InviteMemberRole.yaml' | ||
description: deprecated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Description already in the InviteMemberRole.yaml |
||
invitation_link: | ||
type: string | ||
format: uri | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ allOf: | |
description: last time the user was connected | ||
role: | ||
$ref: './enums/InviteMemberRole.yaml' | ||
description: deprecated | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Description already in the InviteMemberRole.yaml |
||
role_name: | ||
type: string | ||
description: the role linked to the user | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,12 @@ properties: | |
target_name: | ||
type: string | ||
target_type: | ||
type: string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. type already in the |
||
$ref: './enums/OrganizationEventTargetType.yaml' | ||
sub_target_type: | ||
type: string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. type already in the OrganizationEventSubTargetType.yaml |
||
nullable: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
$ref: './enums/OrganizationEventSubTargetType.yaml' | ||
change: | ||
type: string | ||
origin: | ||
type: string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. type already in the OrganizationEventOrigin.yaml |
||
$ref: './enums/OrganizationEventOrigin.yaml' | ||
triggered_by: | ||
type: string | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type: object | ||
nullable: true | ||
properties: | ||
type: | ||
type: object | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,10 @@ allOf: | |
service_id: | ||
type: string | ||
format: uuid | ||
description: present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
service_name: | ||
type: string | ||
description: present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
service_type: | ||
$ref: './enums/LinkedServiceType.yaml' | ||
description: present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
owned_by: | ||
type: string | ||
description: "Entity that created/own the variable (i.e: Qovery, Doppler)" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type: string | ||
enum: | ||
- "K3S" | ||
- "MANAGED" | ||
- "MANAGED" | ||
default: "MANAGED" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
type: string | ||
description: | | ||
type of the service (application, database, job, gateway...) | ||
present only for `BUILT_IN` variable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This description is no longer true |
||
description: type of the service (application, database, job, gateway...) | ||
enum: | ||
- APPLICATION | ||
- CONTAINER | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
type: string | ||
description: Type of the organization event | ||
nullable: true | ||
enum: | ||
- ADVANCED_SETTINGS | ||
- API_TOKEN | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ allOf: | |
type: string | ||
commit: | ||
$ref: '../CommitResponse.yaml' | ||
nullable: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
schedule: | ||
type: object | ||
properties: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put the default to
Kubernetes.yaml