Compare commits

..

6 commits

Author SHA1 Message Date
d77fe08933 Merge branch 'main' into renovate/docker.mafyuh.xyz-sonatype-nexus3-3.x
Some checks failed
continuous-integration/drone/pr Build is failing
Lint on PR / Lint with Python 3.8 (pull_request) Failing after 26s
Lint on PR / Lint with Python 3.9 (pull_request) Failing after 3s
Lint on PR / Lint with Python 3.10 (pull_request) Failing after 3s
2024-05-28 00:04:45 +00:00
14f9db5259 Update .forgejo/workflows/yamllint.yml 2024-05-28 00:04:35 +00:00
d7658bab00 Update .forgejo/workflows/yamllint.yml 2024-05-28 00:02:41 +00:00
173644e004 Update .forgejo/workflows/yamllint.yml 2024-05-28 00:01:03 +00:00
a3d89b1c45 Update .forgejo/workflows/yamllint.yml 2024-05-28 00:00:19 +00:00
73b8920910 revert 5d881722a1
revert Update .forgejo/workflows/yamllint.yml
2024-05-27 23:59:06 +00:00

View file

@ -9,70 +9,58 @@ jobs:
name: Lint with Python 3.8 name: Lint with Python 3.8
runs-on: docker runs-on: docker
container: container:
image: docker.mafyuh.xyz/nikolaik/python-nodejs:python3.8-nodejs18-slim image: docker.mafyuh.xyz/python:3.8-slim-bullseye
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Set up Python 3.8 - name: Set up Python 3.8
run: | run: python3 --version
python3 --version
- name: Install yamllint - name: Install yamllint
run: | run: pip3 install yamllint
pip3 install yamllint
- name: Show yamllint version - name: Show yamllint version
run: | run: yamllint --version
yamllint --version
- name: Lint .yml files - name: Lint .yml files
run: | run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} + find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
- name: Lint .yaml files
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
runs-on: docker runs-on: docker
container: container:
image: docker.mafyuh.xyz/nikolaik/python-nodejs:python3.9-nodejs18-slim image: docker.mafyuh.xyz/python:3.9-slim-bullseye
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Set up Python 3.9 - name: Set up Python 3.9
run: | run: python3 --version
python3 --version
- name: Install yamllint - name: Install yamllint
run: | run: pip3 install yamllint
pip3 install yamllint
- name: Show yamllint version - name: Show yamllint version
run: | run: yamllint --version
yamllint --version
- name: Lint .yml files - name: Lint .yml files
run: | run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} + find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
- name: Lint .yaml files
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
runs-on: docker runs-on: docker
container: container:
image: docker.mafyuh.xyz/nikolaik/python-nodejs:python3.10-nodejs18-slim image: docker.mafyuh.xyz/python:3.10-slim-bullseye
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Set up Python 3.10 - name: Set up Python 3.10
run: | run: python3 --version
python3 --version
- name: Install yamllint - name: Install yamllint
run: | run: pip3 install yamllint
pip3 install yamllint
- name: Show yamllint version - name: Show yamllint version
run: | run: yamllint --version
yamllint --version
- name: Lint .yml files - name: Lint .yml files
run: | run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} + find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
- name: Lint .yaml files
run: |
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +