From fe773d56f2c20ecd956a4158c8b1b727c3da826d Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:37:34 +0900 Subject: [PATCH] ci: add CI for YAML files --- .github/workflows/ci.yml | 8 ++++++++ .yamllint.yml | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 .yamllint.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 467fd51..a52be00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,3 +11,11 @@ jobs: steps: - uses: actions/checkout@v4 - run: swift format lint -rsp . + yamllint: + runs-on: ubuntu-latest + container: alpine:3.21 + steps: + - uses: actions/checkout@v4 + - run: apk update && apk add yamllint + - run: yamllint --version + - run: yamllint --strict --config-file .yamllint.yml . diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..74e1046 --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,7 @@ +extends: default + +rules: + line-length: false + document-start: false + truthy: + check-keys: false