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 AF99050D8D2; Mon, 17 Jul 2023 16:38:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org AF99050D8D2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1689601122; bh=Y3qsyRP7QqO6XytcnYR6PmqjFGNa7GL2N8q6JS5Z0DE=; 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=dVP3XYnst8bTt9Nu+wtZHrhOCBSJbe1Y8FL5z7Hxy3dJrPIu+dufr6Ql8YusRZfbd 8N6kiS/wxDlelCp5sCpEXrpDTgip0g8ZdiK6w0qH7BjYOjir4NEQFKHyvzru8Hgl8F Ibm8uQUz/fSOQSCm9vnu6eAT3z5NW0/GBl/zkCx0= Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 679B3516A7D for ; Mon, 17 Jul 2023 16:36:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 679B3516A7D Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-51e5da802afso6476897a12.3 for ; Mon, 17 Jul 2023 06:36:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689601003; x=1692193003; 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=dXaidLgJ14l3aK3pSqyYKy3U+0V4Xn0X2Ss3Mis7AE8=; b=ADm3HETEf4mcREWLWNdvZWIsTuB1K9ftr1dHCIZXSwJxUonEd1VLIU7gHYdzjim95X qQGtAaKPOcZ5M8ZZPqFQTTdbDlxBd3+xqR2FTVkdFXulSFcWEcxNwcsGjRu1/RyK+kac S+q1Z1ZJaO4MCJoH/iNza+0+ujexZTKaugk2wbjsApknAyg5Gf/0A9qR2U2cmwC39T17 X8QH4tLGMTOzs+uQGref8X5r1tGlWEGmtXy3GKLjVeCVfHsrtdcSePWaNohHXrVGP4f+ xmpR6bvR5k6S/cFjSAn4ZGwNV9IHyUFgIDWvpzQ73fNnRXi/FfAp7Wo2n3aktXDlAsWD tRiw== X-Gm-Message-State: ABy/qLbGXvtlQaQ0tJc6RSIgt/B4Hi72PoCPJuEpusu/+OpGA/l/u2gB HqV+zcmUsuP61RPdAM520kf55Lk3Rd8= X-Google-Smtp-Source: APBJJlE3WrBIyAiy/2bVDt6H49oBi3du3cid7v57WRt8O6saAUviiGr8eVW4i03XuEEhusZS4QU3EA== X-Received: by 2002:a50:fb06:0:b0:51e:2a56:91d6 with SMTP id d6-20020a50fb06000000b0051e2a5691d6mr10867367edq.19.1689601003422; Mon, 17 Jul 2023 06:36:43 -0700 (PDT) Received: from pony.. ([185.6.247.97]) by smtp.gmail.com with ESMTPSA id a19-20020a50ff13000000b0051bed498851sm9989800edu.54.2023.07.17.06.36.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 06:36:43 -0700 (PDT) To: tarantool-patches@dev.tarantool.org, Sergey Kaplun , max.kokryashkin@gmail.com Date: Mon, 17 Jul 2023 16:34:37 +0300 Message-Id: <28d01b012c35749e8087ee21326e275c5bba6a21.1689600525.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/4][v2] 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 enables running checkpatch [1] for checking patch on a pre-commit stage. 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..2336fb15 --- /dev/null +++ b/.github/actions/checkpatch/action.yml @@ -0,0 +1,11 @@ +name: Checkpatch +description: Check patches against LuaJIT development guidelines +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 44338f6d..d86c5d54 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -53,3 +53,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