From 0e08268ea66cea107b84340d4c185be7be217956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Tue, 18 Jun 2024 22:58:15 +0200 Subject: [PATCH] Running collector and its test on NodeJS 20 --- .github/workflows/CI.yml | 12 +++++------- .github/workflows/reusable-collect.yml | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index eef37de96..a4d0235ba 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -51,14 +51,12 @@ jobs: - name: "Checkout" uses: actions/checkout@v4 - - name: "Cache NPM dependencies" - uses: actions/cache@v4 + - name: "Setup Node" + uses: actions/setup-node@v4 with: - path: "~/.npm" - key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} - restore-keys: | - npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} - npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- + node-version: 20 + cache: "npm" + cache-dependency-path: 'packages/collector/package-lock.json' - name: "Install NPM dependencies" run: | diff --git a/.github/workflows/reusable-collect.yml b/.github/workflows/reusable-collect.yml index d1db32a34..5c003c7c9 100644 --- a/.github/workflows/reusable-collect.yml +++ b/.github/workflows/reusable-collect.yml @@ -18,14 +18,12 @@ jobs: - name: "Checkout" uses: actions/checkout@v4 - - name: "Cache NPM dependencies" - uses: actions/cache@v4 + - name: "Setup Node" + uses: actions/setup-node@v4 with: - path: "~/.npm" - key: npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} - restore-keys: | - npm-dependencies-${{ runner.os }}-${{ env.cache-version }}-${{ hashFiles('package.json') }} - npm-dependencies-${{ runner.os }}-${{ env.cache-version }}- + node-version: 20 + cache: "npm" + cache-dependency-path: 'packages/collector/package-lock.json' - name: "Install NPM dependencies" run: |