From f861e406c1ead4eb2f86df65bbcafd3c7940ee30 Mon Sep 17 00:00:00 2001 From: wattanx Date: Wed, 4 Oct 2023 21:15:13 +0900 Subject: [PATCH] feat: add ci --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..124b9d5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node: [18] + + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + cache: "pnpm" + + - name: Install dependencies + run: pnpm install + + - name: Test + run: pnpm test