Skip to content

Commit

Permalink
chore: created install workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Jul 3, 2023
1 parent a2aa5f4 commit 66ff2d2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/branch.yml
Expand Up @@ -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
Expand Down
25 changes: 25 additions & 0 deletions .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

0 comments on commit 66ff2d2

Please sign in to comment.