From 420e68abb649f6a7c0d13f6cf6b3e5a24f388cbb Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Thu, 26 Dec 2024 22:08:22 -0500 Subject: [PATCH] ci: lint zig code with ZLint --- .github/workflows/zlint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/zlint.yml diff --git a/.github/workflows/zlint.yml b/.github/workflows/zlint.yml new file mode 100644 index 000000000..426911ecc --- /dev/null +++ b/.github/workflows/zlint.yml @@ -0,0 +1,23 @@ +name: ZLint + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + zlint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Lint with ZLint + uses: DonIsaac/zlint-action@v0 + with: + # When true (the default value), only files changed in a + # PR get linted. Has no effect on pushes. + diff-only: false