summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBrendan Forster <github@brendanforster.com>2024-09-04 11:31:15 -0300
committerBrendan Forster <github@brendanforster.com>2024-09-04 17:55:10 +0000
commit7d5c74c72597c6ad89fc25399b8daeed95fc9f00 (patch)
tree19dd8ac3d988b4633e4640abb961eb575ae6a7b8 /.github
parent79a9f54d800f115a241c52d5b25549c30ca1de25 (diff)
downloadrest-api-description-7d5c74c72597c6ad89fc25399b8daeed95fc9f00.tar.gz
rest-api-description-7d5c74c72597c6ad89fc25399b8daeed95fc9f00.zip
Refactor linter stage to install yamllint directly and invoke from
workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linter.yml23
1 files changed, 13 insertions, 10 deletions
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index 4a2cf8a57..64006df7f 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -5,23 +5,26 @@ on:
- push
jobs:
- build:
- name: Lint OpenAPI Descriptions
+ lint:
+ name: Lint releases
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- - name: Yaml Lint
- uses: karancode/yamllint-github-action@v2.0.0
+ - uses: actions/setup-python@v5
+ name: Install Python
with:
- yamllint_file_or_dir: 'descriptions/**/*.yaml'
- yamllint_strict: false
- yamllint_config_filepath: '.yamllint-config.yml'
- yamllint_comment: true
- - uses: actions/setup-node@v3
+ python-version: '3.12'
+ - run: pip install yamllint
+ name: Install yamllint
+ - run: 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'
- - run: npm install
+ - name: Install Node modules
+ run: npm ci
- name: JSON Lint
run: npm run lint
- name: OpenAPI Lint