From b37b687479ab6c24eab4c2de22cabe47b633dff2 Mon Sep 17 00:00:00 2001 From: utam0k Date: Sun, 16 Jun 2024 15:34:23 +0900 Subject: [PATCH] ci: Add a github actions workflow for lint Signed-off-by: utam0k --- .github/workflows/lint.yml | 14 ++++++++++++++ schema/config-schema.json | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..fd0252ea5 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,14 @@ +name: Lint + +on: [push, pull_request] + +jobs: + check-format: + runs-on: ubuntu-24.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Run make -C schema fmt + run: make -C schema fmt + - name: Check for changes + run: git diff --exit-code diff --git a/schema/config-schema.json b/schema/config-schema.json index cb74342f2..5124def5f 100644 --- a/schema/config-schema.json +++ b/schema/config-schema.json @@ -226,14 +226,14 @@ "properties": { "initial": { "type": "string", - "pattern": "^[0-9, -]*$" + "pattern": "^[0-9, -]*$" }, "final": { "type": "string", - "pattern": "^[0-9, -]*$" + "pattern": "^[0-9, -]*$" } } - } + } } }, "linux": {