Skip to content

Commit d083bd0

Browse files
committed
ci(ga): add dpes verifucation for PRs
1 parent dfeb5a3 commit d083bd0

File tree

3 files changed

+38
-15
lines changed

3 files changed

+38
-15
lines changed

.github/workflows/dependencies.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Dependencies'
2+
3+
on:
4+
# Triggers the workflow on pull request events
5+
pull_request:
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
review:
14+
runs-on: ubuntu-latest
15+
name: Review
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Dependencies Review
19+
uses: actions/dependency-review-action@v2
20+
# FIXME: This validation does not work on CI
21+
# verify:
22+
# runs-on: ubuntu-latest
23+
# name: Verify
24+
# steps:
25+
# - uses: actions/setup-node@v3
26+
# - uses: actions/checkout@v3
27+
# - name: Update Cache
28+
# run: npm run update-deps
29+
# - name: Verify Deps
30+
# run: |
31+
# if [[ $(npm run verify-deps) ]]; then
32+
# echo "Dependencies content has changed! Update dependencies via 'npm run update-deps' and commit changes!"
33+
# npm run verify-deps
34+
# exit 1
35+
# fi

.github/workflows/dependency-review.yml

-14
This file was deleted.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"name": "root",
33
"version": "0.0.0",
4-
"packageManager": "npm@18.0.0",
4+
"packageManager": "npm@9.3.1",
55
"private": true,
66
"scripts": {
77
"ct": "git-cz",
8+
"update-deps": "rm -rf node_modules && rm -rf npm_cache && npm i",
9+
"verify-deps": "git diff --name-only | grep npm_cache/_cacache/content",
810
"start": "nx serve ng-dynamic-component",
911
"build": "nx build ng-dynamic-component",
1012
"test": "nx test ng-dynamic-component",

0 commit comments

Comments
 (0)