From 852b0f1c6b03f5f413bf586b445028797195bc02 Mon Sep 17 00:00:00 2001 From: Howard Date: Mon, 17 Jul 2023 08:51:57 -0700 Subject: [PATCH] Use setup-node GH action with yarn caching (#180) * Use setup-node GH action with yarn caching * Add step name --- .github/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9666115c31..40b6471cf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,12 +10,19 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v2 + - name: Checkout repo + uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'yarn' + - name: Install project dependencies + run: yarn install - uses: nrwl/nx-set-shas@v3 with: main-branch-name: 'master' - - run: yarn install - - - run: npx nx test + - name: Run tests + run: npx nx test