From da50d19f9d2ddde99d8dd2c8ed938525e25a4305 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 19 Feb 2025 12:30:07 +0100 Subject: [PATCH] ci: update CI workflow to use Super-linter for linting --- .gitea/workflows/ci.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 874b931..43378a8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,15 +4,26 @@ on: pull_request: jobs: - linelint: + build: + name: Lint runs-on: vps-4 - name: Check if all files end in newline + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Linelint - uses: actions/linelint@master - id: linelint + - name: Checkout code + uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Super-linter + uses: super-linter/super-linter@v7.2.1 # x-release-please-version checkstyle: name: "Checkstyle Main"