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