From 66ff2d2b01421cecefcb425e025deca7adb73f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Quixada=CC=81?= Date: Sun, 2 Jul 2023 22:04:00 -0400 Subject: [PATCH] chore: created install workflow config --- .github/workflows/branch.yml | 19 +------------------ .github/workflows/install.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/install.yml diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml index 67b2d0a..eb442f9 100644 --- a/.github/workflows/branch.yml +++ b/.github/workflows/branch.yml @@ -8,24 +8,7 @@ on: jobs: install: name: Install - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Cache node_modules - id: cacheModules - uses: actions/cache@v3 - with: - path: ~/.npm # this is cache where npm installs from before going out to the network - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - - name: Install dependencies - if: steps.cacheModules.outputs.cache-hit != 'true' - run: npm install - - debug: - name: Debug - runs-on: ubuntu-latest - steps: - - uses: hmarr/debug-action@v2 + uses: ./.github/workflows/install.yml checks: name: Check diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml new file mode 100644 index 0000000..3d4e12d --- /dev/null +++ b/.github/workflows/install.yml @@ -0,0 +1,25 @@ +name: v4.x install + +on: [workflow_call] + +jobs: + install: + name: Install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Cache node_modules + id: cacheModules + uses: actions/cache@v3 + with: + path: ~/.npm # this is cache where npm installs from before going out to the network + key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} + - name: Install dependencies + if: steps.cacheModules.outputs.cache-hit != 'true' + run: npm install + + debug: + name: Debug + runs-on: ubuntu-latest + steps: + - uses: hmarr/debug-action@v2