From 0d46f9ae9f01c478dab95bf22efbc66b6898835b Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Wed, 5 Feb 2025 07:00:02 +0300 Subject: [PATCH] new GHA linters --- .github/workflows/actionlint.yml | 35 ++++++++++++++++++++++++++++++++ .github/workflows/yamllint.yml | 28 +++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .github/workflows/actionlint.yml create mode 100644 .github/workflows/yamllint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 0000000..b006075 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,35 @@ +# Copyright (c) 2013-2025 Yegor Bugayenko +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +--- +name: actionlint +'on': + push: + branches: + - master + pull_request: + branches: + - master +jobs: + actionlint: + timeout-minutes: 15 + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - name: Download actionlint + id: get_actionlint + # yamllint disable-line rule:line-length + run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + shell: bash + - name: Check workflow files + run: ${{ steps.get_actionlint.outputs.executable }} -color + shell: bash diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml new file mode 100644 index 0000000..54596ab --- /dev/null +++ b/.github/workflows/yamllint.yml @@ -0,0 +1,28 @@ +# Copyright (c) 2013-2025 Yegor Bugayenko +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +--- +name: yamllint +'on': + push: + branches: + - master + pull_request: + branches: + - master +jobs: + yamllint: + timeout-minutes: 15 + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - uses: ibiqlik/action-yamllint@v3