From 04aa46702e251d3f5ba82bfef1dc480636e3b712 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Wed, 21 Feb 2024 11:36:15 +0100 Subject: [PATCH] Updated CI dependencies Removed old cache dependency as it was using node 16 and showing a lot of warnings. Upgraded all dependencies to latest version. Implemented GitHub's cache for simplicity. --- .github/workflows/javascript-test.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/javascript-test.yml b/.github/workflows/javascript-test.yml index 39c8eef..253d09c 100644 --- a/.github/workflows/javascript-test.yml +++ b/.github/workflows/javascript-test.yml @@ -1,6 +1,9 @@ name: Continuous testing -on: [pull_request] +on: + pull_request: + push: + branches: ["main"] jobs: test: @@ -10,12 +13,20 @@ jobs: runs-on: ubuntu-latest name: running ${{ matrix.command }} steps: - - uses: actions/checkout@v3 - - name: Use node 18 - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 - - uses: c-hive/gha-yarn-cache@v2 + - name: Cache node modules + id: cache-npm + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}- - name: Install dependencies run: yarn install --frozen-lockfile - run: yarn run ${{ matrix.command }}