Compare commits

..

4 commits

Author SHA1 Message Date
fa84f4dcd4 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 YAML files (pull_request) Failing after 24s
2024-05-28 00:08:25 +00:00
a1201cbba9 Update .forgejo/workflows/yamllint.yml 2024-05-28 00:08:17 +00:00
bdd6de12bf Update .forgejo/workflows/yamllint.yml 2024-05-28 00:08:04 +00:00
07a823dd0b Update .forgejo/workflows/yamllint.yml 2024-05-28 00:06:42 +00:00

View file

@ -5,62 +5,26 @@ on:
types: [opened, synchronize, reopened] types: [opened, synchronize, reopened]
jobs: jobs:
lint-python38: lint:
name: Lint with Python 3.8 name: Lint YAML files
runs-on: docker runs-on: docker
container:
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
run: python3 --version
- name: Install yamllint
run: pip3 install yamllint
- name: Show yamllint version
run: yamllint --version
- name: Lint .yml files
run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
lint-python39: - name: Install Node.js
name: Lint with Python 3.9
runs-on: docker
container:
image: docker.mafyuh.xyz/python:3.9-slim-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
- name: Set up Python 3.9 with:
run: python3 --version node-version: 14
- name: Install yamllint
run: pip3 install yamllint
- name: Show yamllint version
run: yamllint --version
- name: Lint .yml files
run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
lint-python310:
name: Lint with Python 3.10
runs-on: docker
container:
image: docker.mafyuh.xyz/python:3.10-slim-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Set up Python 3.10
run: python3 --version
- name: Install yamllint - name: Install yamllint
run: pip3 install yamllint run: |
npm install -g yamllint
- name: Show yamllint version - name: Show yamllint version
run: yamllint --version run: |
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}}}" {} + yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./**/*.yml