Skip to content

Commit 7d5c74c

Browse files
committed
Refactor linter stage to install yamllint directly and invoke from
workflow
1 parent 79a9f54 commit 7d5c74c

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/linter.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@ on:
55
- push
66

77
jobs:
8-
build:
9-
name: Lint OpenAPI Descriptions
8+
lint:
9+
name: Lint releases
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Code
1313
uses: actions/checkout@v4
14-
- name: Yaml Lint
15-
uses: karancode/[email protected]
14+
- uses: actions/setup-python@v5
15+
name: Install Python
1616
with:
17-
yamllint_file_or_dir: 'descriptions/**/*.yaml'
18-
yamllint_strict: false
19-
yamllint_config_filepath: '.yamllint-config.yml'
20-
yamllint_comment: true
21-
- uses: actions/setup-node@v3
17+
python-version: '3.12'
18+
- run: pip install yamllint
19+
name: Install yamllint
20+
- run: yamllint -f parsable -c .yamllint-config.yml descriptions/api.github.com/*.yaml
21+
name: Run yamllint on project descriptions
22+
- name: Install NodeJS
23+
uses: actions/setup-node@v4
2224
with:
2325
node-version: '16'
24-
- run: npm install
26+
- name: Install Node modules
27+
run: npm ci
2528
- name: JSON Lint
2629
run: npm run lint
2730
- name: OpenAPI Lint

0 commit comments

Comments
 (0)