-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (37 loc) · 919 Bytes
/
yaml-checks.yaml
File metadata and controls
40 lines (37 loc) · 919 Bytes
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
# Copyright (C) The DDC development team, see COPYRIGHT.md file
#
# SPDX-License-Identifier: MIT
---
name: YAML checks
# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- '.clang-format'
- '.clang-tidy'
- '.gersemirc'
- '.github/workflows/yaml-checks.yaml'
- '**.yaml'
- '**.yml'
push:
branches:
- main
paths:
- '.clang-format'
- '.clang-tidy'
- '.gersemirc'
- '.github/workflows/yaml-checks.yaml'
- '**.yaml'
- '**.yml'
workflow_dispatch:
jobs:
yaml-lint:
name: YAML lint using yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install yamllint
run: pipx install yamllint~=1.35
- run: |
yamllint $(git ls-files '*.yml' '*.yaml')
yamllint .clang-format .clang-tidy .gersemirc