Skip to content

Commit

Permalink
Update megalinter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VijayKesharwani authored Oct 19, 2023
1 parent 19c12f0 commit 2b43f7f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/megalinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ name: MegaLinter

on: # yamllint disable-line rule:truthy
# Pull Requests to main
pull_request:
branches: [master, main]
push:
branches: [Draft/ExtendSpectralLintingRule]

env: # Comment env block if you do not want to apply fixes
# Apply linter fixes configuration
Expand Down Expand Up @@ -35,7 +35,12 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances

- name: Install Spectral
run: npm install -g @stoplight/spectral
- name: Run spectral:oas Spectral Linting
run: spectral lint code/API_definitions/qod-api.yaml --verbose --ruleset .spectral-oas.yml


# MegaLinter
- name: MegaLinter
id: ml
Expand Down

0 comments on commit 2b43f7f

Please sign in to comment.