From 018650774449cc82df20ed07f7a8e5e47fbf8e3c Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Wed, 6 Dec 2023 11:27:59 -0500 Subject: [PATCH] Change Node version back after resetting. --- .github/workflows/performance.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 39f94fae3397a..af5b873f2f5cf 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -71,12 +71,13 @@ jobs: # - Run performance tests (current commit). # - Print performance tests results. # - Check out target commit (target branch or previous commit). - # - Switch Node.js versions if different in the target branch. + # - Switch Node.js versions if necessary. # - Install npm dependencies. # - Build WordPress. # - Run performance tests (previous/target commit). # - Print target performance tests results. # - Reset to original commit. + # - Switch Node.js versions if necessary. # - Install npm dependencies. # - Set the environment to the baseline version. # - Run baseline performance tests. @@ -214,6 +215,12 @@ jobs: - name: Reset to original commit run: git reset --hard $GITHUB_SHA + - name: Set up Node.js + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 + with: + node-version-file: '.nvmrc' + cache: npm + - name: Install npm dependencies run: npm ci