From c2a84ba556c0a957c97f19768305a1c9ffdc797f Mon Sep 17 00:00:00 2001 From: Spenser Black Date: Sat, 9 Nov 2024 21:09:57 -0500 Subject: [PATCH] Add CI workflow --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..bff8ece --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - "20.x" + - "22.x" + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + - uses: pnpm/actions-setup@v4 + - run: pnpm install + - name: Build + run: pnpm run -w build + - name: Test + run: pnpm run -w test