Update .forgejo/workflows/yamllint.yml
This commit is contained in:
parent
98d782a0a0
commit
9b61fde29f
1 changed files with 30 additions and 15 deletions
|
@ -14,15 +14,20 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.8
|
- name: Set up Python 3.8
|
||||||
run: python3 --version
|
run: |
|
||||||
|
python3 --version
|
||||||
- name: Install yamllint
|
- name: Install yamllint
|
||||||
run: pip3 install yamllint
|
run: |
|
||||||
|
pip3 install yamllint
|
||||||
- name: Show yamllint version
|
- name: Show yamllint version
|
||||||
run: yamllint --version
|
run: |
|
||||||
|
yamllint --version
|
||||||
- name: Lint .yml files
|
- name: Lint .yml files
|
||||||
run: find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
run: |
|
||||||
|
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
||||||
- name: Lint .yaml files
|
- name: Lint .yaml files
|
||||||
run: find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
run: |
|
||||||
|
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
||||||
|
|
||||||
lint-python39:
|
lint-python39:
|
||||||
name: Lint with Python 3.9
|
name: Lint with Python 3.9
|
||||||
|
@ -33,15 +38,20 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
run: python3 --version
|
run: |
|
||||||
|
python3 --version
|
||||||
- name: Install yamllint
|
- name: Install yamllint
|
||||||
run: pip3 install yamllint
|
run: |
|
||||||
|
pip3 install yamllint
|
||||||
- name: Show yamllint version
|
- name: Show yamllint version
|
||||||
run: yamllint --version
|
run: |
|
||||||
|
yamllint --version
|
||||||
- name: Lint .yml files
|
- name: Lint .yml files
|
||||||
run: find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
run: |
|
||||||
|
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
||||||
- name: Lint .yaml files
|
- name: Lint .yaml files
|
||||||
run: find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
run: |
|
||||||
|
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
||||||
|
|
||||||
lint-python310:
|
lint-python310:
|
||||||
name: Lint with Python 3.10
|
name: Lint with Python 3.10
|
||||||
|
@ -52,12 +62,17 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
run: python3 --version
|
run: |
|
||||||
|
python3 --version
|
||||||
- name: Install yamllint
|
- name: Install yamllint
|
||||||
run: pip3 install yamllint
|
run: |
|
||||||
|
pip3 install yamllint
|
||||||
- name: Show yamllint version
|
- name: Show yamllint version
|
||||||
run: yamllint --version
|
run: |
|
||||||
|
yamllint --version
|
||||||
- name: Lint .yml files
|
- name: Lint .yml files
|
||||||
run: find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
run: |
|
||||||
|
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
||||||
- name: Lint .yaml files
|
- name: Lint .yaml files
|
||||||
run: find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
run: |
|
||||||
|
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
|
||||||
|
|
Reference in a new issue