File tree Expand file tree Collapse file tree 3 files changed +142
-1
lines changed
Expand file tree Collapse file tree 3 files changed +142
-1
lines changed Original file line number Diff line number Diff line change 1+ # To get started with Dependabot version updates, you'll need to specify which
2+ # package ecosystems to update and where the package manifests are located.
3+ # Please see the documentation for all configuration options:
4+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+ version : 2
7+ updates :
8+ - package-ecosystem : " github-actions"
9+ directory : " /"
10+ schedule :
11+ interval : " weekly"
12+ - package-ecosystem : npm
13+ directory : " /"
14+ schedule :
15+ interval : " weekly"
16+ open-pull-requests-limit : 10
17+ # Increase the version requirements
18+ # only when required
19+ versioning-strategy : increase-if-necessary
20+ groups :
21+ angular :
22+ patterns :
23+ - " @angular*"
24+ update-types :
25+ - " minor"
26+ - " patch"
27+ eslint :
28+ patterns :
29+ - " *eslint*"
30+ update-types :
31+ - " minor"
32+ - " patch"
33+ ngrx :
34+ patterns :
35+ - " @ngrx/*"
36+ update-types :
37+ - " minor"
38+ - " patch"
39+ types :
40+ patterns :
41+ - " types/*"
42+ - " @types/*"
43+ update-types :
44+ - " minor"
45+ - " patch"
46+ ignore :
47+ - dependency-name : " @angular*"
48+ update-types : ["version-update:semver-major"]
49+ - dependency-name : " @ngrx*"
50+ update-types : ["version-update:semver-major"]
51+ labels :
52+ - " dependencies"
53+ - " npm"
Original file line number Diff line number Diff line change 11name : CI
22
3- on : [push, pull_request ]
3+ on : [push]
44
55jobs :
66 unittest :
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+ - develop
8+ env :
9+ NODE_VERSION : 20.x
10+
11+ jobs :
12+ install-and-cache :
13+ name : Run install and cache
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Check out Git repository
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : 20.x
24+
25+ - name : Cache node_modules
26+ id : cached-node-modules
27+ uses : actions/cache@v3
28+ with :
29+ path : node_modules
30+ key : node-modules-${{ hashFiles('package-lock.json') }}-${{ env.NODE_VERSION }}
31+
32+ - name : Install dependencies
33+ if : steps.cached-node-modules.outputs.cache-hit != 'true'
34+ run : npm ci
35+
36+ eslint :
37+ name : eslint
38+ needs : [install-and-cache]
39+ runs-on : ubuntu-latest
40+
41+ steps :
42+ - name : Check out Git repository
43+ uses : actions/checkout@v4
44+
45+ - name : Set up Node.js
46+ uses : actions/setup-node@v4
47+ with :
48+ node-version : ${{ env.NODE_VERSION }}
49+
50+ - name : Cache node_modules
51+ id : cached-node-modules
52+ uses : actions/cache@v3
53+ with :
54+ path : node_modules
55+ key : node-modules-${{ hashFiles('package-lock.json') }}-${{ env.NODE_VERSION }}
56+
57+ - name : run eslint
58+ run : npm run lint
59+
60+ test :
61+ name : Run tests
62+ runs-on : ubuntu-latest
63+ needs : [install-and-cache]
64+ steps :
65+ - name : Check out
66+ uses : actions/checkout@v4
67+
68+ - name : Set up Node.js
69+ uses : actions/setup-node@v4
70+ with :
71+ node-version : ${{ env.NODE_VERSION }}
72+
73+ - name : Cache node_modules
74+ id : cached-node-modules
75+ uses : actions/cache@v3
76+ with :
77+ path : node_modules
78+ key : node-modules-${{ hashFiles('package-lock.json') }}-${{ env.NODE_VERSION }}
79+
80+ - name : Install dependencies
81+ if : steps.cached-node-modules.outputs.cache-hit != 'true'
82+ run : npm ci
83+
84+ - name : Test
85+ run : |
86+ npm run test
87+ npm run build
88+
You can’t perform that action at this time.
0 commit comments