1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-05-05 09:39:54 +02:00

unit test coverage for caching multiple dirs

This commit is contained in:
Ethan Dennis 2020-03-06 14:39:03 -08:00
parent e0d1942524
commit 057d9de723
No known key found for this signature in database
GPG key ID: 32E74B75DB4065DD
11 changed files with 161 additions and 80 deletions

View file

@ -1,29 +0,0 @@
name: Cache
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Restore npm cache
uses: ./
id: cache
with:
path: |
node_modules
dist
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('salt.txt') }}
- run: npm install
if: steps.cache.outputs.cache-hit != 'true'
- run: npm run build
if: steps.cache.outputs.cache-hit != 'true'

View file

@ -1,11 +1,11 @@
name: Tests
on:
# pull_request:
# branches:
# - master
# paths-ignore:
# - '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
push:
branches:
- master