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

Use @actions/glob for pattern matching

This commit is contained in:
Ethan Dennis 2020-03-05 12:12:12 -08:00
parent 1e233443e8
commit db235cfc56
No known key found for this signature in database
GPG key ID: 32E74B75DB4065DD
12 changed files with 4427 additions and 176 deletions

34
.github/workflows/cache.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Cache
on:
pull_request:
branches:
- master
jobs:
# Build and unit test
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'
- run: npm install
- run: npm run build
- name: Restore npm cache
uses: ./
with:
path: |
node_modules
dist
~/Desktop/cache-me
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Prettier Format Check
run: npm run format-check
- name: ESLint Check
run: npm run lint
- name: Build & Test
run: npm run test