Skip to content

Add yaml schema and validator #1

Add yaml schema and validator

Add yaml schema and validator #1

Workflow file for this run

# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2021 Canonical Ltd.
# Copyright (c) 2023 Linaro Ltd
# Author: Krzysztof Kozlowski <[email protected]>
# <[email protected]>
#
# Loosely based on: https://github.com/linux-test-project/ltp
# https://github.com/linux-nfc/neard
#
name: "Yaml"
on:
pull_request:
push:
schedule:
# Run at 1:01 PM, every Tuesday
- cron: '1 13 * * 2'
workflow_dispatch:
jobs:
job:
name: Yaml
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install additional packages
run: |

Check failure on line 33 in .github/workflows/yaml.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/yaml.yml

Invalid workflow file

You have an error in your yaml syntax on line 33
apt install python3-setuptools python3-pip
pip3 install yamllint json jsonschema ruamel.yaml
- name: Lint samples
run: for file in config-samples/*; do yamllint $file; done
- name: Check samples
run: for file in config-samples/*; do python3 ./validate.py -s schema.yaml $file; done