Skip to content

Commit 198ee6c

Browse files
committed
Add lint matrix
Signed-off-by: gsstoykov <georgi.stoykov@limechain.tech>
1 parent 89cbdff commit 198ee6c

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/zxc-build-library.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,32 @@ permissions:
3636
contents: read
3737

3838
jobs:
39+
lint:
40+
name: Lint
41+
runs-on: hiero-client-sdk-linux-large
42+
strategy:
43+
matrix:
44+
include:
45+
- type: sdk
46+
check-path: "src/sdk/main"
47+
- type: tck
48+
check-path: "src/tck"
49+
50+
steps:
51+
- name: Harden Runner
52+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
53+
with:
54+
egress-policy: audit
55+
56+
- name: Checkout Code
57+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
59+
- name: Run Clang-Format
60+
uses: jidicula/clang-format-action@c74383674bf5f7c69f60ce562019c1c94bc1421a # v4.13.0
61+
with:
62+
clang-format-version: "17"
63+
check-path: ${{ matrix.check-path }}
64+
3965
build:
4066
name: Build
4167
runs-on: hiero-client-sdk-linux-large
@@ -100,12 +126,6 @@ jobs:
100126
with:
101127
submodules: true
102128

103-
- name: Run Clang-Format
104-
uses: jidicula/clang-format-action@c74383674bf5f7c69f60ce562019c1c94bc1421a # v4.13.0
105-
with:
106-
clang-format-version: "17"
107-
check-path: "src/sdk/main src/tck"
108-
109129
- name: Use Node.js 22
110130
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
111131
with:

0 commit comments

Comments
 (0)