From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id B7594559A12; Wed, 2 Aug 2023 11:57:24 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B7594559A12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1690966644; bh=gbVSVrUxjR2lXXI/JrOT/x8V1bzAdrF/eapBR2Wh+T4=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=MzEImgHEbc0NUrc0/UmeNb1aFnw6GKWxh3sUbao9nUbMshK6oajyiHurAP1Vuf1r6 gGIv88a5xPWhwI3Ud+HE2qA0cuYoLZHe4F6n3MVnDJfSFk+vOoZieTYMNfpLOsUCQM t1BXxlbBZFnntP4M0LVbtzUe5LUFE1UbUaro5FBY= Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D53B9559A08 for ; Wed, 2 Aug 2023 11:55:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D53B9559A08 Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-99bc512526cso1010114666b.1 for ; Wed, 02 Aug 2023 01:55:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690966549; x=1691571349; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t6U52PUGiFlQ/g4eYcKF60eLdh3K/xQw5h76RZqFMBQ=; b=PJQBOV33vsFZSUo5ssW8E1qw994Xz9N8C0VHif0xi7WuUyYyFoaakP5SCZ639XZsfP 9agYbAWQGIg6/+zFFeSPykpvks6JJ/roF8pC0/1BvT4zAhHlxHhcqu6Iixn/H+WWsFQe 1jDjfyU7yYmFZKSMHwxxL+k3dIc3fTmyhRmj69GHzw3+TMZDVoJJjczjKvhFo4dgE08l yOBYEa+tI7VjrUWuiJBXfLymKO5zhTmKSnucZNHXRgXp7twe8rYXn1BS56uZ9FI8XpEg nowBQVzlQi2Nb7rMxjWPdYcU0nvsVFvxOVo0VZfBQwQELF8nZUzdZ/v0CBT2SSq3VPqM Pvtg== X-Gm-Message-State: ABy/qLZcWIoRBDGhq5KdTs+SAE2hSkKVWOK4s+Pbde4Ixfc5tgsjS0SC wx0o2xqmNGOS3vi2TG7mrZ8+AUjfpV0= X-Google-Smtp-Source: APBJJlEZA/h9Zj2k2mfct6FZAsWdjEuzuczxo0HisUdX+HAlobcgRvNoeitDNuhX2ca0B1/i/mNKKw== X-Received: by 2002:a17:906:8441:b0:994:4f10:fb39 with SMTP id e1-20020a170906844100b009944f10fb39mr4626087ejy.16.1690966548886; Wed, 02 Aug 2023 01:55:48 -0700 (PDT) Received: from pony.. ([185.6.247.97]) by smtp.gmail.com with ESMTPSA id jt9-20020a170906dfc900b0098dfec235ccsm8780125ejc.47.2023.08.02.01.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 01:55:48 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, Sergey Kaplun , max.kokryashkin@gmail.com Date: Wed, 2 Aug 2023 11:52:24 +0300 Message-Id: <0b4e13bb2bfeea5812e9bb8cee02cb706c9f1175.1690966149.git.sergeyb@tarantool.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 4/5][v3] ci: enable checkpatch X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Sergey Bronnikov Patch adds a GitHub Action, that clones checkpatch repository, and adds a job, that runs checkpatch [1] using CMake target "LuaJIT-checkpatch" against commits on top of the master branch. 1. https://github.com/tarantool/checkpatch --- .github/actions/checkpatch/action.yml | 11 +++++++++++ .github/workflows/lint.yml | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/actions/checkpatch/action.yml diff --git a/.github/actions/checkpatch/action.yml b/.github/actions/checkpatch/action.yml new file mode 100644 index 00000000..cd2cce62 --- /dev/null +++ b/.github/actions/checkpatch/action.yml @@ -0,0 +1,11 @@ +name: Setup checkpatch +description: Setup a script for checking for codestyle and grammar errors +runs: + using: composite + steps: + - uses: actions/checkout@v3 + with: + repository: tarantool/checkpatch + path: 'checkpatch' + - run: apt install -y codespell + shell: bash diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8154a622..db3af975 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -51,3 +51,23 @@ jobs: - name: luacheck run: cmake --build . --target LuaJIT-luacheck working-directory: ${{ env.BUILDDIR }} + + checkpatch: + runs-on: [self-hosted, lightweight, Linux, x86_64] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + submodules: recursive + - name: checkpatch + uses: ./.github/actions/checkpatch + - name: environment + uses: ./.github/actions/setup + - name: make tarantool/master available + run: git checkout tarantool/master && git checkout - + - name: configure + run: cmake -S . -B ${{ env.BUILDDIR }} + - name: checkpatch + run: cmake --build . --target LuaJIT-checkpatch + working-directory: ${{ env.BUILDDIR }} -- 2.34.1