Spectral should run after source code checkout
This commit is contained in:
Родитель
0ff7ac4d31
Коммит
e8faccc245
|
@ -26,6 +26,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
environment: ${{ inputs.API_MANAGEMENT_ENVIRONMENT }}
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
# Run Spectral
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
|
@ -33,11 +38,6 @@ jobs:
|
|||
- run: npm install -g @stoplight/spectral
|
||||
- run: spectral lint "${{ GITHUB.WORKSPACE }}/${{ inputs.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}\apis\*.{json,yml,yaml}" --ruleset https://raw.githubusercontent.com/connectedcircuits/devops-api-linter/main/rules.yaml
|
||||
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
# Add this step for each APIM environment and pass specific set of secrets that you want replaced in the env section below
|
||||
- name: "Perform namevalue secret substitution in configuration.${{ inputs.API_MANAGEMENT_ENVIRONMENT}}.yaml"
|
||||
if: (inputs.API_MANAGEMENT_ENVIRONMENT == 'prod' )
|
||||
|
|
Загрузка…
Ссылка в новой задаче