Skip to content

chore(deps): update actions/cache action to v4 #1133

chore(deps): update actions/cache action to v4

chore(deps): update actions/cache action to v4 #1133

name: Build and Test and Deploy
on:
push:
branches:
- KillYourMaster
pull_request:
jobs:
ci-cd:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}-
- name: Build & test the application
run: |
npm ci
npm test