From beaacecd1be7b150858e848d2a562140c83afb07 Mon Sep 17 00:00:00 2001 From: kse3hi Date: Tue, 28 Nov 2023 18:57:10 +0000 Subject: [PATCH] Added linters --- .github/workflows/ci.yml | 6 ------ .github/workflows/linter.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 877fc914..8cc5b08a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,12 +28,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup python - uses: actions/setup-python@v4 - - - name: Run linters - uses: pre-commit/action@v3.0.0 - - name: Setup Hugo uses: peaceiris/actions-hugo@v2.6.0 with: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..4a9303a2 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,36 @@ +# Copyright (c) 2022-2023 Contributors to the Eclipse Foundation +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available at +# https://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. +# +# SPDX-License-Identifier: Apache-2.0 + +name: CI workflow + +on: + workflow_dispatch: + pull_request: + branches: + - main + +jobs: + lint-job: + runs-on: ubuntu-latest + name: "Run linters" + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup python + uses: actions/setup-python@v4 + + - name: Run linters + uses: pre-commit/action@v3.0.0