Skip to content

Commit

Permalink
update github actions to run on commits to main as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolb committed Sep 8, 2023
1 parent e0e3606 commit 0cfc206
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 50 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/spectral.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Quality Pipeline
permissions: write-all
on:
push:
branches:
- main
pull_request:
branches:
- main # or master, or whatever branch you target with PRs
- main
release:
types:
- created
Expand Down
106 changes: 58 additions & 48 deletions kong/petKong.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,62 @@
_format_version: '3.0'
_format_version: "3.0"
services:
- host: localhost
id: 6ce82fd3-ffaa-564d-a98e-7b6cf11d7b5a
name: petstore
path: /v1
- host: pet-store-kong-3abae03b4c44.herokuapp.com
id: 6ce82fd3-ffaa-564d-a98e-7b6cf11d7b5a
name: petstore
path: /v1
plugins: []
port: 80
protocol: http
routes:
- id: fcabe360-daec-5fbf-a2be-50f393c23e38
methods:
- GET
name: petstore_listpets
paths:
- ~/pets$
plugins: []
port: 3000
protocol: http
routes:
- id: fcabe360-daec-5fbf-a2be-50f393c23e38
methods:
- GET
name: petstore_listpets
paths:
- ~/pets$
plugins: []
regex_priority: 200
strip_path: false
tags: []
- id: b3862911-a318-51f8-99e7-5f6f3685c61f
methods:
- POST
name: petstore_createpet
paths:
- ~/pets$
plugins: []
regex_priority: 200
strip_path: false
tags: []
- id: 0ef5ebf6-6973-5d23-a051-ab9367803be3
methods:
- GET
name: petstore_getpet
paths:
- ~/pets/(?<id>[^#?/]+)$
plugins: []
regex_priority: 100
strip_path: false
tags: []
- id: 7f1a9c95-7df0-5a54-8619-a59ace7f5604
methods:
- PUT
name: petstore_updatepet
paths:
- ~/pets/(?<id>[^#?/]+)$
plugins: []
regex_priority: 100
strip_path: false
tags: []
regex_priority: 200
strip_path: false
tags: []
- id: b3862911-a318-51f8-99e7-5f6f3685c61f
methods:
- POST
name: petstore_createpet
paths:
- ~/pets$
plugins: []
regex_priority: 200
strip_path: false
tags: []
- id: fe28075b-dc30-5646-869e-567b749aa8e9
methods:
- DELETE
name: petstore_deletepet
paths:
- ~/pets/(?<id>[^#?/]+)$
plugins: []
regex_priority: 100
strip_path: false
tags: []
- id: 0ef5ebf6-6973-5d23-a051-ab9367803be3
methods:
- GET
name: petstore_getpet
paths:
- ~/pets/(?<id>[^#?/]+)$
plugins: []
regex_priority: 100
strip_path: false
tags: []
- id: 7f1a9c95-7df0-5a54-8619-a59ace7f5604
methods:
- PUT
name: petstore_updatepet
paths:
- ~/pets/(?<id>[^#?/]+)$
plugins: []
regex_priority: 100
strip_path: false
tags: []
tags: []
upstreams: []
2 changes: 1 addition & 1 deletion spec/petStore.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"servers": [
{
"url": "http://localhost:3000/v1"
"url": "http://pet-store-kong-3abae03b4c44.herokuapp.com/v1"

Check warning on line 17 in spec/petStore.json

View workflow job for this annotation

GitHub Actions / Lint (push)

oas3-https-only

My API supports HTTPS only.; "http://pet-store-kong-3abae03b4c44.herokuapp.com/v1" must match the pattern "^https://"
}
],
"paths": {
Expand Down

0 comments on commit 0cfc206

Please sign in to comment.