Skip to content

Commit

Permalink
ci: Add a github actions workflow for lint
Browse files Browse the repository at this point in the history
Signed-off-by: utam0k <[email protected]>
  • Loading branch information
utam0k committed Dec 10, 2024
1 parent 8cfc407 commit b37b687
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions schema/config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@
"properties": {
"initial": {
"type": "string",
"pattern": "^[0-9, -]*$"
"pattern": "^[0-9, -]*$"
},
"final": {
"type": "string",
"pattern": "^[0-9, -]*$"
"pattern": "^[0-9, -]*$"
}
}
}
}
}
},
"linux": {
Expand Down

0 comments on commit b37b687

Please sign in to comment.