Skip to content

Commit

Permalink
Auto-format schema (canonical#1810)
Browse files Browse the repository at this point in the history
Add schema auto-format to tox and a CI test
  • Loading branch information
holmanb authored Nov 10, 2022
1 parent e6c51ba commit 04c82ea
Show file tree
Hide file tree
Showing 5 changed files with 903 additions and 307 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/check_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,19 @@ jobs:
env:
TOXENV: tip-${{ matrix.env }}
run: tox
schema-format:
strategy:
fail-fast: false
matrix:
lint-with:
- {tip-versions: true, os: ubuntu-latest}
name: Check json format
runs-on: ${{ matrix.lint-with.os }}
steps:
- name: "Checkout #1"
uses: actions/checkout@v3.0.0

- name: "Test format"
run: |
tools/check_json_format.sh cloudinit/config/schemas/schema-cloud-config-v1.json
tools/check_json_format.sh cloudinit/config/schemas/versions.schema.cloud-config.json
Loading

0 comments on commit 04c82ea

Please sign in to comment.