Merge into one job #4354
Workflow file for this run
This file contains hidden or 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: Lint OpenAPI Descriptions | |
on: | |
- push | |
jobs: | |
lint: | |
name: Lint releases | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: '3.12' | |
- run: pip install yamllint | |
name: Install yamllint | |
- run: | | |
echo "current directory $(pwd)" | |
echo "current directory contents" | |
ls -l . | |
echo "parent directory contents" | |
ls -l .. | |
yamllint -f parsable -c .yamllint-config.yml descriptions/api.github.com/*.yaml | |
name: Run yamllint on project descriptions | |
- name: Install NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16' | |
- name: Install Node modules | |
run: npm ci | |
- name: JSON Lint | |
run: npm run lint | |
- name: OpenAPI Lint | |
uses: mattpage/[email protected] | |
with: | |
entrypoints: 'descriptions/**/*.yaml' | |
config: '.redocly.yml' | |