From 5f6f03bf5d293906d96a4d39180638bb98b08044 Mon Sep 17 00:00:00 2001 From: Ryan Miller Date: Mon, 1 Jul 2024 17:27:13 +1000 Subject: [PATCH] chore: add node version to github action --- .github/workflows/unit-tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 173da0b7..3fe3d98f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -20,6 +20,7 @@ jobs: uses: actions/setup-node@v4 with: cache: 'pnpm' + node-version-file: '.tool-versions' - name: Get pnpm store directory shell: bash @@ -37,5 +38,13 @@ jobs: - name: Install dependencies run: pnpm install + run-tests: + runs-on: ubuntu-latest + + needs: cache-and-install + + steps: - name: Run unit tests - run: pnpm test \ No newline at end of file + run: pnpm test + + \ No newline at end of file