From 16e148a95c48f2cdabaea4cfa0806b9ee5e52edf Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 13:53:25 -0700 Subject: [PATCH 01/20] testing --- .github/workflows/legal-oas-ci.yml | 7 +++---- docs/business.yaml | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 3167d51e12..09ee74481f 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -2,7 +2,6 @@ name: Business API OAS CI on: pull_request: - types: [assigned, synchronize] paths: - "docs/**" workflow_dispatch: @@ -11,12 +10,12 @@ defaults: run: shell: bash working-directory: . - + permissions: contents: write - actions: read + actions: write checks: write - + jobs: business-oas-ci: uses: bcgov/bcregistry-sre/.github/workflows/oas-ci.yaml@main diff --git a/docs/business.yaml b/docs/business.yaml index b6c568b44a..3462319e06 100644 --- a/docs/business.yaml +++ b/docs/business.yaml @@ -4,7 +4,7 @@ info: version: '2.0' description: |- Businesses provideas all of the services needed to manage legal entities. - This encompasses all types of businesses authorized to do business by the Registrar. + This encompasses all types of businesses authorized to do business by the Registrar.111 contact: name: BC Registry email: admin@daxiom.com From c2253f15cc4cb7ea90dd71ca54e4789f9eeeea73 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:07:43 -0700 Subject: [PATCH 02/20] testing 2 --- .github/workflows/legal-oas-ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 09ee74481f..feebc1d17e 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -17,7 +17,14 @@ permissions: checks: write jobs: - business-oas-ci: - uses: bcgov/bcregistry-sre/.github/workflows/oas-ci.yaml@main - with: - working_directory: "." + build: + name: Run Spectral + runs-on: ubuntu-latest + steps: + # Check out the repository + - uses: actions/checkout@v3 + + # Run Spectral + - uses: stoplightio/spectral-action@latest + with: + file_glob: 'doc/api/*.yaml' From a8868f524c2bd7bf69fdaa66f2335dca43f9e949 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:10:38 -0700 Subject: [PATCH 03/20] testing 3 --- .spectral.yaml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .spectral.yaml diff --git a/.spectral.yaml b/.spectral.yaml new file mode 100644 index 0000000000..27b281e2ce --- /dev/null +++ b/.spectral.yaml @@ -0,0 +1 @@ +extends: ["spectral:oas", "spectral:asyncapi"] \ No newline at end of file From 703ff65dfe39c1d03a8a9a4ec88505871c3b36df Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:20:27 -0700 Subject: [PATCH 04/20] update --- .github/workflows/legal-oas-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index feebc1d17e..27befa11ed 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,7 +1,7 @@ name: Business API OAS CI on: - pull_request: + pull_request_target: paths: - "docs/**" workflow_dispatch: From 2a105c5837e497d758b2ebc0ec9d5c63bcc84db3 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:22:38 -0700 Subject: [PATCH 05/20] update233 --- .github/workflows/legal-oas-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 27befa11ed..e1a0bc77a7 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -2,6 +2,7 @@ name: Business API OAS CI on: pull_request_target: + types: [assigned, opened, synchronize, reopened] paths: - "docs/**" workflow_dispatch: From 94480a58091c43675196d0e38e5bbbc974cbdec7 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:32:37 -0700 Subject: [PATCH 06/20] update --- .github/workflows/legal-oas-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index e1a0bc77a7..aa2208d1be 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,7 +1,7 @@ name: Business API OAS CI on: - pull_request_target: + pull_request: types: [assigned, opened, synchronize, reopened] paths: - "docs/**" @@ -13,8 +13,6 @@ defaults: working-directory: . permissions: - contents: write - actions: write checks: write jobs: From b4a3f7d18690e1f6dae50ca1da941765b553caf7 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:34:21 -0700 Subject: [PATCH 07/20] dfsfgg --- .github/workflows/legal-oas-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index aa2208d1be..c66ede2e32 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,11 +1,9 @@ name: Business API OAS CI on: - pull_request: - types: [assigned, opened, synchronize, reopened] + push: paths: - "docs/**" - workflow_dispatch: defaults: run: From 0b6feae5c9dd32fe0b0c0a823f11cb3a95364db0 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:35:40 -0700 Subject: [PATCH 08/20] sdfsd --- .github/workflows/legal-oas-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index c66ede2e32..dd25267c8c 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,4 +1,4 @@ -name: Business API OAS CI +name: Business API OAS CI 111 on: push: From 012162d0d0399cdbae1f79bafc78e68e5f1cef0e Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:36:33 -0700 Subject: [PATCH 09/20] sdfsd --- .github/workflows/legal-oas-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index dd25267c8c..c66ede2e32 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,4 +1,4 @@ -name: Business API OAS CI 111 +name: Business API OAS CI on: push: From f94d490f36f5dc2a7983ea6d70d677da970ac998 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:37:23 -0700 Subject: [PATCH 10/20] asxcvsdf --- .github/workflows/legal-oas-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index c66ede2e32..82e8bc8558 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,4 +1,4 @@ -name: Business API OAS CI +name: Business API OAS CI333 on: push: From 4d6b51b04a84301886cab3180f3397284cc3373e Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:37:58 -0700 Subject: [PATCH 11/20] xcvxc --- docs/business.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/business.yaml b/docs/business.yaml index 3462319e06..cc611c337e 100644 --- a/docs/business.yaml +++ b/docs/business.yaml @@ -4,7 +4,7 @@ info: version: '2.0' description: |- Businesses provideas all of the services needed to manage legal entities. - This encompasses all types of businesses authorized to do business by the Registrar.111 + This encompasses all types of businesses authorized to do business by the Registrar.111222 contact: name: BC Registry email: admin@daxiom.com From 6b0f48d3b3183aa5e75c33f9a4caeaac18fe9dae Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:46:45 -0700 Subject: [PATCH 12/20] ttt --- .github/workflows/legal-oas-ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 82e8bc8558..4855f91bf0 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -1,7 +1,7 @@ -name: Business API OAS CI333 +name: Business API OAS CI on: - push: + pull_request: paths: - "docs/**" @@ -21,7 +21,9 @@ jobs: # Check out the repository - uses: actions/checkout@v3 - # Run Spectral - - uses: stoplightio/spectral-action@latest - with: - file_glob: 'doc/api/*.yaml' + - name: Setup Node + uses: actions/setup-node@v3 + - name: Install spectral + run: npm install --location=global @stoplight/spectral-cli + - name: Run spectral + run: spectral lint docs/business.yaml --ruleset .spectral.yml --verbose From 8c7d651adab961a3ea0c2407cb798072e403ec73 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:47:00 -0700 Subject: [PATCH 13/20] bjmbm --- .github/workflows/legal-oas-ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 4855f91bf0..8fe6729a47 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -10,9 +10,6 @@ defaults: shell: bash working-directory: . -permissions: - checks: write - jobs: build: name: Run Spectral From 347a6c37c031123a45f17f6e8402b973d163c775 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:48:07 -0700 Subject: [PATCH 14/20] ouio --- .github/workflows/legal-oas-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 8fe6729a47..c84605d6b7 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -23,4 +23,4 @@ jobs: - name: Install spectral run: npm install --location=global @stoplight/spectral-cli - name: Run spectral - run: spectral lint docs/business.yaml --ruleset .spectral.yml --verbose + run: spectral lint docs/business.yaml --ruleset .spectral.yaml --verbose From 2dd8446c96f0c957011cb0dd53d02321286f7ca0 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:50:07 -0700 Subject: [PATCH 15/20] nmmbn --- .github/workflows/legal-oas-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index c84605d6b7..e83446c4e6 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -23,4 +23,4 @@ jobs: - name: Install spectral run: npm install --location=global @stoplight/spectral-cli - name: Run spectral - run: spectral lint docs/business.yaml --ruleset .spectral.yaml --verbose + run: spectral lint docs/*.yaml --ruleset .spectral.yaml --verbose From 2dd9e19e9c4189447d83d9f23605070d1bc00254 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:51:48 -0700 Subject: [PATCH 16/20] testing --- .spectral.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.spectral.yaml b/.spectral.yaml index 27b281e2ce..c41ac36867 100644 --- a/.spectral.yaml +++ b/.spectral.yaml @@ -1 +1,3 @@ -extends: ["spectral:oas", "spectral:asyncapi"] \ No newline at end of file +extends: spectral:oas +rules: + operation-success-response: false \ No newline at end of file From 48d22f9cbfd64e3e5403a13e41bfe6e6d431f2ee Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:53:45 -0700 Subject: [PATCH 17/20] test --- .github/workflows/legal-oas-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index e83446c4e6..6f0d585625 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -16,10 +16,10 @@ jobs: runs-on: ubuntu-latest steps: # Check out the repository - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 - name: Install spectral run: npm install --location=global @stoplight/spectral-cli - name: Run spectral From 2bc4c0dc9f316eb066b4c4f08af45c34264dcf92 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 14:54:55 -0700 Subject: [PATCH 18/20] test --- .spectral.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.spectral.yaml b/.spectral.yaml index c41ac36867..27b281e2ce 100644 --- a/.spectral.yaml +++ b/.spectral.yaml @@ -1,3 +1 @@ -extends: spectral:oas -rules: - operation-success-response: false \ No newline at end of file +extends: ["spectral:oas", "spectral:asyncapi"] \ No newline at end of file From 8d04b51e0e431feaf496657379bf1efd864239b6 Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 15:04:23 -0700 Subject: [PATCH 19/20] update --- .github/workflows/legal-oas-ci.yml | 20 +++++++------------- docs/business.yaml | 2 +- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/legal-oas-ci.yml b/.github/workflows/legal-oas-ci.yml index 6f0d585625..b2f035b059 100644 --- a/.github/workflows/legal-oas-ci.yml +++ b/.github/workflows/legal-oas-ci.yml @@ -2,8 +2,10 @@ name: Business API OAS CI on: pull_request: + types: [assigned, synchronize] paths: - "docs/**" + workflow_dispatch: defaults: run: @@ -11,16 +13,8 @@ defaults: working-directory: . jobs: - build: - name: Run Spectral - runs-on: ubuntu-latest - steps: - # Check out the repository - - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - - name: Install spectral - run: npm install --location=global @stoplight/spectral-cli - - name: Run spectral - run: spectral lint docs/*.yaml --ruleset .spectral.yaml --verbose + business-oas-ci: + uses: bcgov/bcregistry-sre/.github/workflows/oas-ci.yaml@main + with: + working_directory: "." + oas_file_directory: "./docs" \ No newline at end of file diff --git a/docs/business.yaml b/docs/business.yaml index cc611c337e..b6c568b44a 100644 --- a/docs/business.yaml +++ b/docs/business.yaml @@ -4,7 +4,7 @@ info: version: '2.0' description: |- Businesses provideas all of the services needed to manage legal entities. - This encompasses all types of businesses authorized to do business by the Registrar.111222 + This encompasses all types of businesses authorized to do business by the Registrar. contact: name: BC Registry email: admin@daxiom.com From 1c076bc94dd4814d0dcb4a4a4e913c909b3cab4b Mon Sep 17 00:00:00 2001 From: pwei1018 Date: Wed, 31 Jul 2024 15:06:33 -0700 Subject: [PATCH 20/20] update --- docs/business.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/business.yaml b/docs/business.yaml index b6c568b44a..8e6db0609f 100644 --- a/docs/business.yaml +++ b/docs/business.yaml @@ -4,7 +4,7 @@ info: version: '2.0' description: |- Businesses provideas all of the services needed to manage legal entities. - This encompasses all types of businesses authorized to do business by the Registrar. + This encompasses all types of businesses authorized to do business by the Registrar. 111 contact: name: BC Registry email: admin@daxiom.com