Files
cdba/.github/workflows/yaml.yml
Krzysztof Kozlowski b3b50a7441 ci: update checkout to v4 (to fix warning)
Fixes Github deprecation warning:

  Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2024-05-21 09:01:41 +02:00

43 lines
1.1 KiB
YAML

# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2021 Canonical Ltd.
# Copyright (c) 2023 Linaro Ltd
# Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
# <krzk@kernel.org>
#
# Loosely based on: https://github.com/linux-test-project/ltp
# https://github.com/linux-nfc/neard
#
name: "Yaml"
on:
pull_request:
push:
workflow_dispatch:
jobs:
job:
name: Yaml
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
container:
image: ubuntu:jammy
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Install additional packages
run: |
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
apt update
apt install -y --no-install-recommends yamllint python3-jsonschema python3-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