From 2c30fc063bb58ebb26c9d6b701e8358d85739f79 Mon Sep 17 00:00:00 2001 From: Bart Breen Date: Wed, 4 Oct 2023 10:51:34 +1100 Subject: [PATCH] Corrected actions to use functions path. --- .github/workflows/test.yml | 2 +- .github/workflows/validate.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0446a38..e85adef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,4 +44,4 @@ jobs: - name: npm install run: cd functions && npm i - name: npm test - run: npm run test:ci + run: cd functions && npm run test diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 491927d..9dfec8b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -13,6 +13,8 @@ # limitations under the License. # Copied from https://github.com/firebase/extensions/blob/next/.github/workflows/validate.yml +# 1. Changed node versions list to only 18. +# 2. Updated paths to use functions directory. name: Validate @@ -29,8 +31,10 @@ jobs: - name: Setup node uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 + cache: "npm" + cache-dependency-path: "**/package-lock.json" - name: npm install - run: SKIP_POSTINSTALL=yes npm i + run: cd functions && npm i - name: Prettier Lint Check - run: npm run lint + run: cd functions && npm run lint \ No newline at end of file