Skip to content

Commit

Permalink
refactor: update to Nodejs v20
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-schweitzer committed May 28, 2024
1 parent c314524 commit 887f6b6
Show file tree
Hide file tree
Showing 24 changed files with 3,822 additions and 1,081 deletions.
46 changes: 46 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports'],
extends: [
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:import/recommended',
'plugin:import/typescript',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['gen-package-json.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
'import/no-absolute-path': 'error',
'import/no-extraneous-dependencies': 'error',
'import/no-mutable-exports': 'error',
'import/no-unresolved': 'off',
'import/first': 'warn',
'import/newline-after-import': 'warn',
'import/no-deprecated': 'warn',
'unused-imports/no-unused-imports': 'error',
'import/order': [
'warn',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
},
settings: {
'import/internal-regex': '^@(common|models|core|interceptors|middlewares|services)/',
},
};
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ./
if: always()
with:
github-token: ${{ github.token }}
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
timezone: Europe/Paris

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: action-logs
path: ./output.log
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"useTabs": false,
"printWidth": 120,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"jsxBracketSameLine": false,
"parser": "typescript",
"overrides": [
{
"files": ["**/*.json"],
"options": {
"parser":"json"
}
}
]
}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ inputs:
default: 7

runs:
using: node16
using: node20
main: dist/main/index.js
post: dist/post/index.js
4 changes: 3 additions & 1 deletion dist/main/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/post/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions output.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Logs
Loading

0 comments on commit 887f6b6

Please sign in to comment.