Skip to content

Commit 0612244

Browse files
authored
Merge pull request #51 from SuperITMan/feature/update-devDeps-and-CI
Feature/update dev deps and ci
2 parents 895e299 + 0e567fc commit 0612244

File tree

7 files changed

+6355
-4754
lines changed

7 files changed

+6355
-4754
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ charset = utf-8
1616
[*.bat]
1717
end_of_line = crlf
1818

19-
[**.{css, pcss, scss, json, sh, yml}]
19+
[**.{css,pcss,scss,json,sh,yml}]
2020
indent_style = space
2121
indent_size = 2
2222

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
branches:
1212
- master
1313
- 1.[0-9]+.x
14-
14+
1515
env:
1616
TZ: "Europe/Brussels"
1717
MAIN_NODEJS: "18"
@@ -26,11 +26,11 @@ jobs:
2626
runs-on: ${{ matrix.os }}
2727
strategy:
2828
matrix:
29-
node_version: [ "18" ]
30-
os: [ ubuntu-latest ]
31-
experimental: [ false ]
29+
node_version: ["18"]
30+
os: [ubuntu-latest]
31+
experimental: [false]
3232
# Mark following configurations as "experimental" and allow to continue in case of error
33-
# See documentation: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations
33+
# See documentation: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-new-combinations
3434
include:
3535
- os: macos-latest
3636
node_version: 18
@@ -47,29 +47,29 @@ jobs:
4747
fi
4848
4949
# See: https://github.com/marketplace/actions/checkout
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v4
5151

5252
# See: https://github.com/marketplace/actions/setup-node-js-environment
5353
- name: Use Node.js ${{ matrix.node_version }}
54-
uses: actions/setup-node@v2
54+
uses: actions/setup-node@v4
5555
with:
5656
node-version: ${{ matrix.node_version }}
5757

5858
# See: https://github.com/marketplace/actions/cache
5959
# See doc: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
6060
- name: Cache node modules
61-
uses: actions/cache@v2
61+
uses: actions/cache@v4
6262
env:
6363
cache-name: cache-node-modules-${{ matrix.node_version }}-${{ matrix.os }}
6464
with:
65-
# npm cache files are stored in `~/.npm` on Linux/macOS
65+
# npm cache files are stored in `~/.npm` on Linux
6666
path: ~/.npm
6767
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
6868
restore-keys: |
6969
${{ runner.os }}-build-${{ env.cache-name }}-
7070
${{ runner.os }}-build-
7171
${{ runner.os }}-
72-
72+
7373
- name: Install npm ${{ env.NPM_VERSION }}
7474
run: npm i -g npm@${{ env.NPM_VERSION }}
7575

@@ -101,23 +101,22 @@ jobs:
101101
# npm run test:ci:all // comand remove due to incomability node18 and angular12
102102
npm run test:ci
103103
npm run test:ci:demo:ng-latest
104-
105104
106105
- name: Generate docs coverage
107106
run: npm run docs:coverage
108107
if: env.IS_MAIN_ENVIRONMENT == 1
109108

110-
# See: https://github.com/marketplace/actions/upload-artifact
109+
# See: https://github.com/marketplace/actions/upload-a-build-artifact
111110
- name: Upload ngx-form-errors dist folder
112-
uses: actions/upload-artifact@v2
111+
uses: actions/upload-artifact@v4
113112
with:
114113
name: ngx-form-errors-dist
115114
path: dist
116115
if: env.IS_MAIN_ENVIRONMENT == 1
117116

118117
# See: https://github.com/marketplace/actions/coveralls-github-action
119118
- name: Coveralls
120-
uses: coverallsapp/github-action@master
119+
uses: coverallsapp/github-action@v2
121120
with:
122121
github-token: ${{ secrets.GITHUB_TOKEN }}
123122
path-to-lcov: "reports/coverage/lcov.info"
@@ -130,18 +129,19 @@ jobs:
130129
if: startsWith(github.ref, 'refs/tags/')
131130
steps:
132131
# See: https://github.com/marketplace/actions/checkout
133-
- uses: actions/checkout@v2
132+
- uses: actions/checkout@v4
134133

135134
# See: https://github.com/marketplace/actions/setup-node-js-environment
136135
- name: Use Node.js ${{ env.MAIN_NODEJS }}
137-
uses: actions/setup-node@v2
136+
uses: actions/setup-node@v4
138137
with:
139138
node-version: ${{ env.MAIN_NODEJS }}
140139

141140
- name: Install npm ${{ env.NPM_VERSION }}
142141
run: npm i -g npm@${{ env.NPM_VERSION }}
143142

144-
- uses: actions/download-artifact@v2
143+
# See: https://github.com/marketplace/actions/download-a-build-artifact
144+
- uses: actions/download-artifact@v4
145145
with:
146146
name: ngx-form-errors-dist
147147
path: dist

.husky/commit-msg

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
./node_modules/.bin/commitlint --edit $1
1+
commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
./node_modules/.bin/lint-staged && npm run docs:coverage
1+
lint-staged && npm run docs:coverage

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.angular/
22
.git/
3-
.github/
43
.idea/
54
.vscode/
65
dist/

0 commit comments

Comments
 (0)