diff options
author | Peter Johanson <peter@peterjohanson.com> | 2021-03-27 20:51:04 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-09-11 00:50:36 -0400 |
commit | 1d69bdda602e5de1339a3b4713cf594e4852fb24 (patch) | |
tree | ab4b3904e05c647c32f7510347c2d1ca292db1e4 /.github | |
parent | 4a5454b0f9f2cbf755f507ab2a233a2f8c4a2fd3 (diff) |
feat: Add hardware metadata schema.
* Initial hardware metadata JSON schema.
* GH Action to validate all schemas for boards/shields.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/hardware-metadata-validation.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/hardware-metadata-validation.yml b/.github/workflows/hardware-metadata-validation.yml new file mode 100644 index 0000000..3972ed8 --- /dev/null +++ b/.github/workflows/hardware-metadata-validation.yml @@ -0,0 +1,35 @@ +name: Hardware Metadata Validation + +on: + push: + paths: + - ".github/workflows/hardware-metadata-validation.yml" + - "schema/hardware-metadata.schema.json" + - "app/boards/**/*.zmk.yml" + - "app/scripts/west_commands/metadata.py" + pull_request: + paths: + - ".github/workflows/hardware-metadata-validation.yml" + - "schema/hardware-metadata.schema.json" + - "app/boards/**/*.zmk.yml" + - "app/scripts/west_commands/metadata.py" + +jobs: + validate-metadata: + runs-on: ubuntu-latest + container: + image: zmkfirmware/zmk-dev-arm:2.5 + steps: + - uses: actions/checkout@v2 + - name: Install dependencies + run: pip install -r app/scripts/requirements.txt + - name: West init + run: west init -l app + - name: Update modules (west update) + run: west update + - name: Export Zephyr CMake package (west zephyr-export) + run: west zephyr-export + - name: Validate Hardware Metadata + run: | + cd app + west metadata check |