Uses `yamllint`.
Also:
- fix warning for existing YAML files:
```
[truthy] truthy value should be one of [false, true]
```
Closes #14650
23 files changed:
--- /dev/null
+#!/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')
--- /dev/null
+# 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
name: AppVeyor Status Report
-on:
+'on':
status
concurrency:
name: Linux AWS-LC
-on:
+'on':
push:
branches:
- master
name: Docs
-on:
+'on':
push:
branches:
- master
name: Source
-on:
+'on':
push:
branches:
- master
- name: spacecheck
run: .github/scripts/spacecheck.pl
+ - name: yamlcheck
+ run: .github/scripts/yamlcheck.sh
+
- name: binarycheck
run: .github/scripts/binarycheck.pl
name: CodeQL
-on:
+'on':
push:
branches:
- master
# SPDX-License-Identifier: curl
name: configure-vs-cmake
-on:
+'on':
push:
branches:
- master
---
name: curl-for-win
-on:
+'on':
push:
branches:
- master
name: Cygwin
-on:
+'on':
push:
branches:
- master
name: dist
-on:
+'on':
push:
branches:
- master
name: Fuzzer
-on:
+'on':
push:
branches:
- master
name: Hacktoberfest
-on:
+'on':
# this must not ever run on any other branch than master
push:
branches:
name: http3-linux
-on:
+'on':
push:
branches:
- master
# https://github.com/actions/labeler
name: Labeler
-on: [pull_request_target]
+'on': [pull_request_target]
jobs:
label:
name: Old Linux
-on:
+'on':
push:
branches:
- master
name: Linux
-on:
+'on':
push:
branches:
- master
name: Linux 32-bit
-on:
+'on':
push:
branches:
- master
name: macOS
-on:
+'on':
push:
branches:
- master
name: non-native
-on:
+'on':
push:
branches:
- master
name: Linux torture
-on:
+'on':
push:
branches:
- master
name: Windows
-on:
+'on':
push:
branches:
- master
name: Linux wolfSSL
-on:
+'on':
push:
branches:
- master