From 0f2c92fe5a07ed27a13a39e2584e9fe16af65a18 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Fri, 10 Oct 2025 02:02:44 +0900 Subject: [PATCH] ci: add CI --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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..1496684 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22, 24] + steps: + - uses: actions/checkout@v4 + + - name: Install Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun run test:run + + - name: Build + run: bun run build + + - name: Lint + run: bun run lint + + - name: Format check + run: bun run format