GHA: add yamlcheck
Uses `yamllint`. Also: - fix warning for existing YAML files: ``` [truthy] truthy value should be one of [false, true] ``` Closes #14650
This commit is contained in:
parent
5629bb7cf6
commit
f73f6bf9f8
13
.github/scripts/yamlcheck.sh
vendored
Executable file
13
.github/scripts/yamlcheck.sh
vendored
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Copyright (C) Viktor Szakats
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: curl
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
# shellcheck disable=SC2046
|
||||||
|
yamllint \
|
||||||
|
--format standard \
|
||||||
|
--strict \
|
||||||
|
--config-data "$(dirname "$0")/yamlcheck.yaml" \
|
||||||
|
$(git ls-files '*.yaml' '*.yml')
|
||||||
17
.github/scripts/yamlcheck.yaml
vendored
Normal file
17
.github/scripts/yamlcheck.yaml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Copyright (C) Viktor Szakats
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: curl
|
||||||
|
#
|
||||||
|
# Docs: https://yamllint.readthedocs.io/en/stable/configuration.html
|
||||||
|
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
line-length:
|
||||||
|
max: 500
|
||||||
|
level: warning
|
||||||
|
|
||||||
|
braces: disable
|
||||||
|
commas: disable
|
||||||
|
comments: disable
|
||||||
|
document-start: disable
|
||||||
2
.github/workflows/appveyor-status.yml
vendored
2
.github/workflows/appveyor-status.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: AppVeyor Status Report
|
name: AppVeyor Status Report
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
status
|
status
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|||||||
2
.github/workflows/awslc.yml
vendored
2
.github/workflows/awslc.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Linux AWS-LC
|
name: Linux AWS-LC
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/checkdocs.yml
vendored
2
.github/workflows/checkdocs.yml
vendored
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
name: Docs
|
name: Docs
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
5
.github/workflows/checksrc.yml
vendored
5
.github/workflows/checksrc.yml
vendored
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
name: Source
|
name: Source
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
@ -84,6 +84,9 @@ jobs:
|
|||||||
- name: spacecheck
|
- name: spacecheck
|
||||||
run: .github/scripts/spacecheck.pl
|
run: .github/scripts/spacecheck.pl
|
||||||
|
|
||||||
|
- name: yamlcheck
|
||||||
|
run: .github/scripts/yamlcheck.sh
|
||||||
|
|
||||||
- name: binarycheck
|
- name: binarycheck
|
||||||
run: .github/scripts/binarycheck.pl
|
run: .github/scripts/binarycheck.pl
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/configure-vs-cmake.yml
vendored
2
.github/workflows/configure-vs-cmake.yml
vendored
@ -3,7 +3,7 @@
|
|||||||
# SPDX-License-Identifier: curl
|
# SPDX-License-Identifier: curl
|
||||||
|
|
||||||
name: configure-vs-cmake
|
name: configure-vs-cmake
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/curl-for-win.yml
vendored
2
.github/workflows/curl-for-win.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
---
|
---
|
||||||
name: curl-for-win
|
name: curl-for-win
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/cygwin.yml
vendored
2
.github/workflows/cygwin.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Cygwin
|
name: Cygwin
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/distcheck.yml
vendored
2
.github/workflows/distcheck.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: dist
|
name: dist
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/fuzz.yml
vendored
2
.github/workflows/fuzz.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Fuzzer
|
name: Fuzzer
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/hacktoberfest-accepted.yml
vendored
2
.github/workflows/hacktoberfest-accepted.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Hacktoberfest
|
name: Hacktoberfest
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
# this must not ever run on any other branch than master
|
# this must not ever run on any other branch than master
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
2
.github/workflows/http3-linux.yml
vendored
2
.github/workflows/http3-linux.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: http3-linux
|
name: http3-linux
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/label.yml
vendored
2
.github/workflows/label.yml
vendored
@ -10,7 +10,7 @@
|
|||||||
# https://github.com/actions/labeler
|
# https://github.com/actions/labeler
|
||||||
|
|
||||||
name: Labeler
|
name: Labeler
|
||||||
on: [pull_request_target]
|
'on': [pull_request_target]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label:
|
label:
|
||||||
|
|||||||
2
.github/workflows/linux-old.yml
vendored
2
.github/workflows/linux-old.yml
vendored
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
name: Old Linux
|
name: Old Linux
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Linux
|
name: Linux
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/linux32.yml
vendored
2
.github/workflows/linux32.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Linux 32-bit
|
name: Linux 32-bit
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: macOS
|
name: macOS
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/non-native.yml
vendored
2
.github/workflows/non-native.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: non-native
|
name: non-native
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/torture.yml
vendored
2
.github/workflows/torture.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Linux torture
|
name: Linux torture
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Windows
|
name: Windows
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
2
.github/workflows/wolfssl.yml
vendored
2
.github/workflows/wolfssl.yml
vendored
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
name: Linux wolfSSL
|
name: Linux wolfSSL
|
||||||
|
|
||||||
on:
|
'on':
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user