diff options
author | Peter Johanson <peter@peterjohanson.com> | 2021-09-10 16:33:39 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-09-11 00:50:36 -0400 |
commit | c7e513634d2425dbdf21ccd693872301f80cad65 (patch) | |
tree | 2f1a367034540e77bdd66192197ff536aefc46dc /.github | |
parent | 39eb80562d5174e42c8a184e0261674888ac5fd7 (diff) |
feat(metadata): Add YAML check/format npm scripts.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/hardware-metadata-validation.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/hardware-metadata-validation.yml b/.github/workflows/hardware-metadata-validation.yml index 3972ed8..1318b4b 100644 --- a/.github/workflows/hardware-metadata-validation.yml +++ b/.github/workflows/hardware-metadata-validation.yml @@ -15,6 +15,17 @@ on: - "app/scripts/west_commands/metadata.py" jobs: + check-metadata-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + - uses: bahmutov/npm-install@v1 + with: + working-directory: app + - name: Prettier Check + run: npm run prettier:check + working-directory: app validate-metadata: runs-on: ubuntu-latest container: @@ -30,6 +41,5 @@ jobs: - name: Export Zephyr CMake package (west zephyr-export) run: west zephyr-export - name: Validate Hardware Metadata - run: | - cd app - west metadata check + working-directory: app + run: west metadata check |