Skip to content

Commit

Permalink
ci(github): add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Hernandez Pellicer committed Feb 11, 2024
1 parent 707e4fd commit 1584a4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache-node_module
with:
path: 'node_modules'
key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/node.yml') }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci
if: steps.cache-node_module.outputs.cache-hit != 'true'
- run: npm run build
- run: npm run lint
- run: npm run test

0 comments on commit 1584a4a

Please sign in to comment.