From 0cfc206fecd29e0738e88f034eb26be5170aee3a Mon Sep 17 00:00:00 2001 From: Dan Tolbert Date: Fri, 8 Sep 2023 10:52:50 -0400 Subject: [PATCH] update github actions to run on commits to main as well --- .github/workflows/spectral.yaml | 5 +- kong/petKong.yaml | 106 +++++++++++++++++--------------- spec/petStore.json | 2 +- 3 files changed, 63 insertions(+), 50 deletions(-) diff --git a/.github/workflows/spectral.yaml b/.github/workflows/spectral.yaml index 5042274..532b2b2 100644 --- a/.github/workflows/spectral.yaml +++ b/.github/workflows/spectral.yaml @@ -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 diff --git a/kong/petKong.yaml b/kong/petKong.yaml index 001f471..204bb46 100644 --- a/kong/petKong.yaml +++ b/kong/petKong.yaml @@ -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/(?[^#?/]+)$ - plugins: [] - regex_priority: 100 - strip_path: false - tags: [] - - id: 7f1a9c95-7df0-5a54-8619-a59ace7f5604 - methods: - - PUT - name: petstore_updatepet - paths: - - ~/pets/(?[^#?/]+)$ - 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/(?[^#?/]+)$ + plugins: [] + regex_priority: 100 + strip_path: false + tags: [] + - id: 0ef5ebf6-6973-5d23-a051-ab9367803be3 + methods: + - GET + name: petstore_getpet + paths: + - ~/pets/(?[^#?/]+)$ + plugins: [] + regex_priority: 100 + strip_path: false + tags: [] + - id: 7f1a9c95-7df0-5a54-8619-a59ace7f5604 + methods: + - PUT + name: petstore_updatepet + paths: + - ~/pets/(?[^#?/]+)$ + plugins: [] + regex_priority: 100 + strip_path: false + tags: [] + tags: [] upstreams: [] diff --git a/spec/petStore.json b/spec/petStore.json index 22f7555..864585a 100644 --- a/spec/petStore.json +++ b/spec/petStore.json @@ -14,7 +14,7 @@ }, "servers": [ { - "url": "http://localhost:3000/v1" + "url": "http://pet-store-kong-3abae03b4c44.herokuapp.com/v1" } ], "paths": {