Skip to content

Commit

Permalink
Merge pull request #671 from enter-at/chore/update-nodejs-v18
Browse files Browse the repository at this point in the history
Update node version 18
  • Loading branch information
sleistner authored Dec 19, 2022
2 parents e6bd63f + bde4525 commit 731ce4f
Show file tree
Hide file tree
Showing 18 changed files with 10,227 additions and 8,006 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
name: Lint code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 18.x
- run: npm install
- run: npm run lint
test:
Expand All @@ -25,11 +25,10 @@ jobs:
strategy:
matrix:
node:
- 12.x
- 14.x
- 18.x
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/code-climate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3

- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 18.x
- run: npm install

- uses: paambaati/codeclimate-action@v2.7.4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 18.x
- run: npm install
- name: Run build
run: npm run build
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint && npm run test -- -b
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
"verbose": true,
"preset": "ts-jest",
"testEnvironment": "node",
"coverageDirectory": "test-reports",
"roots": [
"src"
],
"reporters": [
"default",
["jest-junit", {
"outputDirectory": "test-reports/jest",
"outputName": "report.xml"
}]
]
};
Loading

0 comments on commit 731ce4f

Please sign in to comment.