Skip to content

Bump actions/cache from 2.1.6 to 4.0.0 #487

Bump actions/cache from 2.1.6 to 4.0.0

Bump actions/cache from 2.1.6 to 4.0.0 #487

Workflow file for this run

name: Bygg branch eller PR
on:
pull_request:
push:
branches-ignore:
- master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
kompiler:
runs-on: ubuntu-latest
steps:
- name: Sjekk ut kode
uses: actions/checkout@v2.3.4
- name: Cache node modules
uses: actions/cache@v4.0.0
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm install
- run: npm run jest
- run: npm run build