Skip to content

Commit 731ce4f

Browse files
authored
Merge pull request #671 from enter-at/chore/update-nodejs-v18
Update node version 18
2 parents e6bd63f + bde4525 commit 731ce4f

18 files changed

+10227
-8006
lines changed

.github/workflows/code-checks.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
name: Lint code
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v1
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
1818
with:
19-
node-version: 12.x
19+
node-version: 18.x
2020
- run: npm install
2121
- run: npm run lint
2222
test:
@@ -25,11 +25,10 @@ jobs:
2525
strategy:
2626
matrix:
2727
node:
28-
- 12.x
29-
- 14.x
28+
- 18.x
3029
steps:
31-
- uses: actions/checkout@v2
32-
- uses: actions/setup-node@v1
30+
- uses: actions/checkout@v3
31+
- uses: actions/setup-node@v3
3332
with:
3433
node-version: ${{ matrix.node }}
3534
- run: npm install

.github/workflows/code-climate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
name: coverage
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v3
2626

27-
- uses: actions/setup-node@v1
27+
- uses: actions/setup-node@v3
2828
with:
29-
node-version: 12.x
29+
node-version: 18.x
3030
- run: npm install
3131

3232
- uses: paambaati/[email protected]

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v1
1818
- uses: actions/setup-node@v1
1919
with:
20-
node-version: 12.x
20+
node-version: 18.x
2121
- run: npm install
2222
- name: Run build
2323
run: npm run build

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run lint && npm run test -- -b

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
"verbose": true,
3+
"preset": "ts-jest",
4+
"testEnvironment": "node",
5+
"coverageDirectory": "test-reports",
6+
"roots": [
7+
"src"
8+
],
9+
"reporters": [
10+
"default",
11+
["jest-junit", {
12+
"outputDirectory": "test-reports/jest",
13+
"outputName": "report.xml"
14+
}]
15+
]
16+
};

0 commit comments

Comments
 (0)