From e3303c51f63b25e9df29a0cad01ad80ea85e11c9 Mon Sep 17 00:00:00 2001 From: Howard Tam Date: Thu, 6 Jul 2023 11:55:42 -0700 Subject: [PATCH 1/2] Use setup-node GH action with yarn caching --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9666115c31..e625c451f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,15 @@ jobs: - 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 From f7b5b3781f05de217027d581f574ad2fc80a13d4 Mon Sep 17 00:00:00 2001 From: Howard Tam Date: Thu, 6 Jul 2023 12:59:26 -0700 Subject: [PATCH 2/2] Add step name --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e625c451f6..40b6471cf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,8 @@ 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