From 17d312f9dcd820be64671cb9182a63896a8ee4a0 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 1/2] 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 From 2c36d2af9403700728f6c2728bb93b8e38b44b84 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:39:58 +0900 Subject: [PATCH 2/2] chore: fix yamllint warnings --- .github/dependabot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 616c1ec..5e433e4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,8 +5,8 @@ version: 2 updates: - - package-ecosystem: "swift" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "swift" + directory: "/" schedule: interval: "weekly" reviewers: