-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (36 loc) · 1.06 KB
/
yaml.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (c) 2021 Canonical Ltd.
# Copyright (c) 2023 Linaro Ltd
# Author: Krzysztof Kozlowski <[email protected]>
#
# 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