-
Notifications
You must be signed in to change notification settings - Fork 432
38 lines (31 loc) · 1.05 KB
/
depcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Depcheck
on: [push, pull_request]
jobs:
depcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
# added -vX just to reset the cache, feel free to up it if you need
# to reset the cache again
cache-name: cache-node-modules-v4
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install npm dependencies
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
run: npm install
# Required for import lint rules to work - packages pointing to ex
# `lib/index.js`, where `src/index.ts` gets compiled to `lib/index.js`
- name: Build modules
id: buildResolver
run: npx gulp js
- name: Check for unused or missing dependencies
id: depcheck
run: npm run depcheck