From 07a823dd0bb30b59238c1be97e4ba173022cebbd Mon Sep 17 00:00:00 2001 From: mafyuh Date: Tue, 28 May 2024 00:06:42 +0000 Subject: [PATCH 1/3] Update .forgejo/workflows/yamllint.yml --- .forgejo/workflows/yamllint.yml | 59 ++++++--------------------------- 1 file changed, 10 insertions(+), 49 deletions(-) diff --git a/.forgejo/workflows/yamllint.yml b/.forgejo/workflows/yamllint.yml index 81311ef..90b7a64 100644 --- a/.forgejo/workflows/yamllint.yml +++ b/.forgejo/workflows/yamllint.yml @@ -5,62 +5,23 @@ on: types: [opened, synchronize, reopened] jobs: - lint-python38: - name: Lint with Python 3.8 - runs-on: docker - container: - image: docker.mafyuh.xyz/python:3.8-slim-bullseye + lint: + name: Lint YAML files + runs-on: ubuntu-latest steps: - name: Checkout code 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: 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 + - name: Install 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}}}" {} + + with: + node-version: 14 - 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 + run: npm install -g 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}}}" {} + \ No newline at end of file + run: yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./**/*.yml From bdd6de12bf1bbfc7b32e1b760ef48da2006cca71 Mon Sep 17 00:00:00 2001 From: mafyuh Date: Tue, 28 May 2024 00:08:04 +0000 Subject: [PATCH 2/3] Update .forgejo/workflows/yamllint.yml --- .forgejo/workflows/yamllint.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/yamllint.yml b/.forgejo/workflows/yamllint.yml index 90b7a64..bf152b2 100644 --- a/.forgejo/workflows/yamllint.yml +++ b/.forgejo/workflows/yamllint.yml @@ -18,10 +18,13 @@ jobs: node-version: 14 - name: Install yamllint - run: npm install -g yamllint + run: | + npm install -g yamllint - name: Show yamllint version - run: yamllint --version + run: | + yamllint --version - name: Lint .yml files - run: yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./**/*.yml + run: | + yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./**/*.yml \ No newline at end of file From a1201cbba998bd5eea8ef2959341d8d108f349c5 Mon Sep 17 00:00:00 2001 From: mafyuh Date: Tue, 28 May 2024 00:08:17 +0000 Subject: [PATCH 3/3] Update .forgejo/workflows/yamllint.yml --- .forgejo/workflows/yamllint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/yamllint.yml b/.forgejo/workflows/yamllint.yml index bf152b2..8e40ed9 100644 --- a/.forgejo/workflows/yamllint.yml +++ b/.forgejo/workflows/yamllint.yml @@ -7,7 +7,7 @@ on: jobs: lint: name: Lint YAML files - runs-on: ubuntu-latest + runs-on: docker steps: - name: Checkout code uses: actions/checkout@v4