updated tags #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Redocly API Lint | |
on: | |
push: | |
branches: | |
- main | |
- feature | |
paths: | |
- 'api-specs/**' | |
- 'redocly.yaml' | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths: | |
- 'api-specs/**' | |
- 'redocly.yaml' | |
jobs: | |
lint-api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 # Updated to use the latest version | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 # Updated to use the latest version | |
with: | |
node-version: '20' # Using Node.js 16, adapt as needed based on Node.js release schedule | |
- name: Install Redocly CLI | |
run: npm install -g @redocly/cli | |
- name: Lint REST API 5.0 | |
run: redocly lint [email protected] | |
- name: Lint Standard REST API 5.0 | |
run: redocly lint [email protected] | |
- name: Lint Standard REST API 5.0 | |
run: redocly lint [email protected] | |