From ad1c43acad0dfb4c7d542a05bfe07e20db2be977 Mon Sep 17 00:00:00 2001 From: vvakame Date: Sat, 21 Feb 2026 12:00:24 +0900 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=20CI=E3=80=81Dependabot?= =?UTF-8?q?=E3=80=81CODEOWNERS=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit prh 本体の構成に合わせて CI 環境を整備する。 - CI ワークフロー: push/PR on master で npm test を実行 - Dependabot: npm と github-actions を weekly でチェック - CODEOWNERS: @vvakame を全ファイルのオーナーに設定 - package.json に engines フィールド追加 (node >= 22) Co-Authored-By: Claude Opus 4.6 --- .github/CODEOWNERS | 1 + .github/dependabot.yml | 20 ++++++++++++++++++++ .github/workflows/ci.yml | 17 +++++++++++++++++ package.json | 3 +++ 4 files changed, 41 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..6ed2a97 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @vvakame diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2a101d7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,20 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + groups: + minor-and-patch: + update-types: + - "minor" + - "patch" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + minor-and-patch: + update-types: + - "minor" + - "patch" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ac13722 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version-file: "package.json" + cache: "npm" + - run: npm ci + - run: npm test diff --git a/package.json b/package.json index bf60cd3..e7e7182 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "url": "https://github.com/prh/rules/issues" }, "homepage": "https://github.com/prh/rules#readme", + "engines": { + "node": ">=22" + }, "dependencies": { "prh": "^6.0.1" }