From 4d175d549ef347f47052ac8b195978a856678849 Mon Sep 17 00:00:00 2001 From: Digikwal <79085106+digikwal@users.noreply.github.com> Date: Tue, 24 Jun 2025 22:37:11 +0200 Subject: [PATCH] ci: create lint.yml --- .github/workflows/lint.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..b7aafc12 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,35 @@ +name: Lint + +on: + workflow_run: + workflows: + - Pre-commit + types: + - completed + workflow_dispatch: {} + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.10.6" + + - name: Setup Go (for shfmt) + uses: actions/setup-go@v5 + with: + go-version: "^1.14" + + - name: Install pre-commit + run: pip install -U pre-commit + + - name: Lint + run: pre-commit run --color=always --all-files + env: + GO111MODULE: on