diff --git a/.github/workflows/check-aep.yaml b/.github/workflows/check-aep.yaml index b4704da..32ad92a 100644 --- a/.github/workflows/check-aep.yaml +++ b/.github/workflows/check-aep.yaml @@ -3,6 +3,9 @@ name: Check AEP Compliance on: pull_request: branches: [main] + paths: + - 'api/**' + - '.spectral.yaml' jobs: check-aep: diff --git a/.spectral.yaml b/.spectral.yaml index 7b51d09..3852bcd 100644 --- a/.spectral.yaml +++ b/.spectral.yaml @@ -1,5 +1,5 @@ extends: - - https://raw.githubusercontent.com/aep-dev/aep-openapi-linter/main/spectral.yaml + - https://raw.githubusercontent.com/aep-dev/aep-openapi-linter/refs/tags/v0.5.3/spectral.yaml rules: x-aep-resource-no-boolean: diff --git a/Makefile b/Makefile index 64aea55..fc8dd1d 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ check-generate-api: generate-api # Check AEP compliance check-aep: - spectral lint --fail-severity=warn ./api/v1alpha1/openapi.yaml + npx --yes @stoplight/spectral-cli lint --fail-severity=warn ./api/v1alpha1/openapi.yaml subsystem-test-up: $(COMPOSE) -f test/subsystem/docker-compose.yaml up -d --build