From 91787fc5dd3a4665f7ca058c26ebb9f49b1d981c Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 11 Feb 2022 12:59:39 -0800 Subject: [PATCH] Use setup-node action to setup nodejs runtime --- .github/workflows/run-tests.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 5839c8066..4ce0328d4 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -50,8 +50,10 @@ jobs: psql --host localhost --port ${{ job.services.postgres.ports[5432] }} --user postgres --password -c "CREATE DATABASE omnivore_test;" env: PGPASSWORD: postgres - - name: Setup nodejs 14.18 - run: source ~/.nvm/nvm.sh && nvm install 14.18 && nvm use 14.18 && npm install -g yarn + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: 14.18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(source ~/.nvm/nvm.sh && yarn cache dir)"