From e7b618d04f54cf6104c82ae84042d2dfcdc04027 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:12:42 +0200 Subject: [PATCH] chore: refactor ci workflow --- .github/workflows/codespell.yml | 13 ----- .github/workflows/editorconfig-checker.yml | 13 ----- .github/workflows/files.yml | 60 ++++++++++++++++++++++ .github/workflows/markdownlint.yml | 13 ----- .github/workflows/typos-cli.yml | 13 ----- .github/workflows/vale.yml | 17 ------ .github/workflows/yamllint.yml | 13 ----- 7 files changed, 60 insertions(+), 82 deletions(-) delete mode 100644 .github/workflows/codespell.yml delete mode 100644 .github/workflows/editorconfig-checker.yml create mode 100644 .github/workflows/files.yml delete mode 100644 .github/workflows/markdownlint.yml delete mode 100644 .github/workflows/typos-cli.yml delete mode 100644 .github/workflows/vale.yml delete mode 100644 .github/workflows/yamllint.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml deleted file mode 100644 index ce3b7d4..0000000 --- a/.github/workflows/codespell.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: CI -on: - pull_request: -jobs: - codespell: - runs-on: ubuntu-latest - steps: - - name: checkout-action - uses: actions/checkout@v4 - - - name: codespell - uses: codespell-project/actions-codespell@v2 diff --git a/.github/workflows/editorconfig-checker.yml b/.github/workflows/editorconfig-checker.yml deleted file mode 100644 index 8a80bc3..0000000 --- a/.github/workflows/editorconfig-checker.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: CI -on: - pull_request: -jobs: - editorconfig-checker: - runs-on: ubuntu-latest - steps: - - name: checkout-action - uses: actions/checkout@v4 - - - name: editorconfig-checker-action - uses: editorconfig-checker/action-editorconfig-checker@v2 diff --git a/.github/workflows/files.yml b/.github/workflows/files.yml new file mode 100644 index 0000000..cd06e3e --- /dev/null +++ b/.github/workflows/files.yml @@ -0,0 +1,60 @@ +--- +name: Files Lint +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read # for actions/checkout to fetch code + +jobs: + yamllint: + runs-on: ubuntu-latest + steps: + - name: checkout-action + uses: actions/checkout@v4.2.2 + + - name: yamllint + uses: ibiqlik/action-yamllint@v3 + + typos-cli: + runs-on: ubuntu-latest + steps: + - name: checkout-action + uses: actions/checkout@v4.2.2 + + - name: typos-action + uses: crate-ci/typos@v1.31.1 + + markdownlint: + runs-on: ubuntu-latest + steps: + - name: checkout-action + uses: actions/checkout@v4.2.2 + + - name: markdownlint-cli2-action + uses: DavidAnson/markdownlint-cli2-action@v19.1.0 + + editorconfig-checker: + runs-on: ubuntu-latest + steps: + - name: checkout-action + uses: actions/checkout@v4.2.2 + + - name: editorconfig-checker-action + uses: editorconfig-checker/action-editorconfig-checker@v2 + + vale: + runs-on: ubuntu-latest + steps: + - name: checkout-action + uses: actions/checkout@v4 + + # mitigate some issues with the vale-action + - name: Install Asciidoctor + run: sudo apt-get install -y asciidoctor + + - name: vale-action + uses: errata-ai/vale-action@v2 diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml deleted file mode 100644 index c27e497..0000000 --- a/.github/workflows/markdownlint.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: CI -on: - pull_request: -jobs: - markdownlint: - runs-on: ubuntu-latest - steps: - - name: checkout-action - uses: actions/checkout@v4 - - - name: markdownlint-cli2-action - uses: DavidAnson/markdownlint-cli2-action@v19 diff --git a/.github/workflows/typos-cli.yml b/.github/workflows/typos-cli.yml deleted file mode 100644 index e87ce45..0000000 --- a/.github/workflows/typos-cli.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: CI -on: - pull_request: -jobs: - typos-cli: - runs-on: ubuntu-latest - steps: - - name: checkout-action - uses: actions/checkout@v4 - - - name: typos-action - uses: crate-ci/typos@v1 diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml deleted file mode 100644 index dd603b7..0000000 --- a/.github/workflows/vale.yml +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: CI -on: - pull_request: -jobs: - vale: - runs-on: ubuntu-latest - steps: - - name: checkout-action - uses: actions/checkout@v4 - - # mitigate some issues with the vale-action - - name: Install Asciidoctor - run: sudo apt-get install -y asciidoctor - - - name: vale-action - uses: errata-ai/vale-action@v2 diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml deleted file mode 100644 index efa5ed7..0000000 --- a/.github/workflows/yamllint.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: CI -on: - pull_request: -jobs: - yamllint: - runs-on: ubuntu-latest - steps: - - name: checkout-action - uses: actions/checkout@v4 - - - name: yamllint - uses: ibiqlik/action-yamllint@v3