From 05b8d3699d9309289d8e68931eb3f0cd4b057888 Mon Sep 17 00:00:00 2001 From: Alejandro Date: Wed, 28 Feb 2024 07:24:40 -0300 Subject: [PATCH] ci --- .github/workflows/ci1.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci1.yml b/.github/workflows/ci1.yml index a23318a9..8bf05e80 100644 --- a/.github/workflows/ci1.yml +++ b/.github/workflows/ci1.yml @@ -13,9 +13,9 @@ jobs: setup: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '20.x' cache: 'npm' @@ -23,20 +23,24 @@ jobs: run: npm ci - name: Cache npm dependencies id: cache-dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 + env: + cache-name: cache-node_modules with: path: '~/.npm' - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.os }}-node- + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- common: needs: setup runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Node.js with cache - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '20.x' - run: npm run build --if-present @@ -54,7 +58,7 @@ jobs: # uses: foundry-rs/foundry-toolchain@v1 # id: foundry-install # - name: Cache Foundry - # uses: actions/cache@v2 + # uses: actions/cache@v3 # with: # path: | # ~/.foundry @@ -68,9 +72,9 @@ jobs: # needs: [setup, install-foundry] # runs-on: ubuntu-latest # steps: - # - uses: actions/checkout@v2 + # - uses: actions/checkout@v3 # - name: Setup Node.js with cache - # uses: actions/setup-node@v2 + # uses: actions/setup-node@v3 # with: # node-version: '20.x' # - run: npm run build --if-present