From 92b5f7d73c1fede40ad48ddc278ebe7dabf1218e Mon Sep 17 00:00:00 2001 From: t0rbik Date: Thu, 1 Aug 2024 17:12:32 +0200 Subject: [PATCH] add unit test workflow --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..029c6b39 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: + pull_request: + types: [opened, reopened] + push: + +jobs: + build: + name: Tests + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.6.0 + run_install: false + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + - name: Install Dependencies + run: pnpm install + - name: Test with Vitest + run: pnpm test