File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 2525 - name : Lint
2626 run : npm run lint
2727
28+ dependencies :
29+ name : Test (dependencies)
30+ runs-on : ' ubuntu-latest'
31+ steps :
32+ - name : Checkout
33+ uses : actions/checkout@v2
34+
35+ - name : Setup Node.js
36+ uses : actions/setup-node@v2
37+ with :
38+ # Node 14 ships with npm v6, which doesn't install peer-dependencies by default.
39+ # Starting with npm v7 (which is shipped with Node >= 16), peer-dependencies are
40+ # automatically installed. So this test (check for unmet peer-dependencies) only
41+ # works with Node <= 14.
42+ node-version : ' 14'
43+
44+ # Simulate an installation by a dependent package
45+ - name : Install dependencies
46+ run : |
47+ rm package-lock.json
48+ npm install --production
49+
50+ - name : Check dependency tree
51+ run : npm ls
52+
2853 test :
2954 name : Test (Node)
3055 runs-on : ${{ matrix.operating-system }}
You can’t perform that action at this time.
0 commit comments