Compare commits

..

No commits in common. "fa84f4dcd472e10e4c16fc0c5e70f5151982b659" and "d77fe08933cd799cb38afd1901f57c3cca7e7109" have entirely different histories.

View file

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