1
0
mirror of https://github.com/opencontainers/runtime-spec.git synced 2025-04-18 20:04:01 +03:00

ci: Add a github actions workflow for lint

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
utam0k 2024-06-16 15:34:23 +09:00
parent 8cfc4074b2
commit b37b687479
No known key found for this signature in database
GPG Key ID: 2DB29D2A21B41E0E
2 changed files with 17 additions and 3 deletions

14
.github/workflows/lint.yml vendored Normal file
View File

@ -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

View File

@ -226,14 +226,14 @@
"properties": {
"initial": {
"type": "string",
"pattern": "^[0-9, -]*$"
"pattern": "^[0-9, -]*$"
},
"final": {
"type": "string",
"pattern": "^[0-9, -]*$"
"pattern": "^[0-9, -]*$"
}
}
}
}
}
},
"linux": {