From dcb6962205e774f4841c4e287786fb8c53132067 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Sun, 6 Apr 2025 05:53:45 +0900 Subject: [PATCH] ci: add CI --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..995846d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: ci +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] +jobs: + lint: + runs-on: ubuntu-latest + container: swift:6.1 + 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 .