diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index b4a418b..9d5bb5f 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -24,12 +24,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Node uses: actions/setup-node@v4 with: - node-version: "20.x" + node-version-file: ".nvmrc" + - name: Install dependencies run: "npm install" + - name: Run tests run: npm test env: diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..9a2a0e2 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20