From 0d0954198fffe3646be322964f4d00139155bd3a Mon Sep 17 00:00:00 2001 From: Nicolai Moraru Date: Sat, 6 Jul 2024 17:56:39 +0300 Subject: [PATCH] ci(test): add test workflow --- .github/workflows/test.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..101b3cb --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,29 @@ +on: + - push + - pull_request + +jobs: + cache-and-install: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 8 + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm test