Skip to content

Commit

Permalink
Merge pull request #65 from cobbler/schema-for-old-signatures
Browse files Browse the repository at this point in the history
Add schema for old signatures
  • Loading branch information
SchoolGuy committed Jul 8, 2023
2 parents a65d661 + 5c4d0b0 commit e140643
Show file tree
Hide file tree
Showing 5 changed files with 596 additions and 167 deletions.
64 changes: 58 additions & 6 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,64 @@ on:
branches: [ main ]

jobs:
verify-json-validation:
verify-json-validation-website-2-x-x:
strategy:
matrix:
version: [ 2.8.x, 2.6.x, 2.4.x ]
runs-on: ubuntu-latest
name: Website V2.x.x
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
path: libcobblersignatures
- uses: actions/checkout@v3
with:
repository: "cobbler/cobbler.github.io"
path: cobbler-github-io
- name: Validate JSON
uses: docker://orrosenblatt/validate-json-action:latest
env:
INPUT_SCHEMA: ./docs/schema.json
INPUT_JSONS: ./libcobblersignatures/config/distro_signatures.json
uses: nhalstead/[email protected]
with:
schema: ./libcobblersignatures/docs/schema_v1.json
jsons: ./cobbler-github-io/signatures/${{ matrix.version }}/latest.json
verify-json-validation-website-3-0-x:
runs-on: ubuntu-latest
name: Website V3.0.x
steps:
- uses: actions/checkout@v3
with:
path: libcobblersignatures
- uses: actions/checkout@v3
with:
repository: "cobbler/cobbler.github.io"
path: cobbler-github-io
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./libcobblersignatures/docs/schema_v2.json
jsons: ./cobbler-github-io/signatures/3.0.x/latest.json
verify-json-validation-website-latest:
runs-on: ubuntu-latest
name: Website V3.0.x
steps:
- uses: actions/checkout@v3
with:
path: libcobblersignatures
- uses: actions/checkout@v3
with:
repository: "cobbler/cobbler.github.io"
path: cobbler-github-io
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./libcobblersignatures/docs/schema_v2.json
jsons: ./cobbler-github-io/signatures/latest.json
verify-json-validation-v2-local:
runs-on: ubuntu-latest
name: Local Repository V2
steps:
- uses: actions/checkout@v3
- name: Validate JSON
uses: nhalstead/[email protected]
with:
schema: ./docs/schema_v2.json
jsons: ./libcobblersignatures/config/distro_signatures.json
1 change: 1 addition & 0 deletions changelog.d/63.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added support for older schemas from Cobbler 2.8.x days
161 changes: 0 additions & 161 deletions docs/schema.json

This file was deleted.

Loading

0 comments on commit e140643

Please sign in to comment.