From b3cbfa3ec95688aded468bec76f05a2eb754f203 Mon Sep 17 00:00:00 2001 From: Hideaki Terai Date: Sun, 12 Apr 2026 12:40:13 +0900 Subject: [PATCH] ci: add GitHub Actions workflow to run tests on push and PR Runs npm ci, build, and vitest on every push to main and on every pull request targeting main, using Node.js 22 with npm cache. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..4051fc4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Test + run: npm test