Skip to content

Commit

Permalink
v3.0.3 (#300)
Browse files Browse the repository at this point in the history
* v3.0.3

* CI fixing

* CI fixing

* Lint fix

* Tests fixes
  • Loading branch information
MrRefactoring authored Feb 25, 2024
1 parent fe606a9 commit 0b8a563
Show file tree
Hide file tree
Showing 103 changed files with 1,709 additions and 2,149 deletions.
124 changes: 66 additions & 58 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,90 @@
parser: "@typescript-eslint/parser"
extends:
- "airbnb-typescript/base"
- airbnb-base
parserOptions:
ecmaVersion: 2018
sourceType: "module"
project: "./tsconfig.lint.json"
project: ./tsconfig.lint.json
plugins:
- "import"
- import
env:
node: true
browser: true
rules:
"@typescript-eslint/lines-between-class-members": "off"
"arrow-parens":
- "error"
- "as-needed"
"class-methods-use-this": "off"
"eol-last": "error"
"import/no-cycle": "off"
"import/prefer-default-export": "off"
"linebreak-style":
- "error"
- "unix"
"lines-between-class-members": "off"
"max-len": "off"
"no-trailing-spaces": "error"
"no-underscore-dangle": "off"
"padding-line-between-statements":
- "error"
- blankLine: "always"
"@typescript-eslint/lines-between-class-members": off
arrow-parens:
- error
- as-needed
class-methods-use-this: off
eol-last: error
import/extensions: off
import/no-cycle: off
import/no-unresolved: off
import/prefer-default-export: off
linebreak-style:
- error
- unix
lines-between-class-members: off
max-len: off
no-trailing-spaces: error
no-underscore-dangle: off
no-dupe-class-members: off
no-unused-vars: off
no-useless-constructor: off
no-empty-function: off
no-param-reassign: off
no-shadow: off
no-redeclare: off
padding-line-between-statements:
- error
- blankLine: always
prev: "*"
next:
- "block"
- "block-like"
- "cjs-export"
- "class"
- "const"
- "export"
- "import"
- "let"
- "var"
- blankLine: "always"
- block
- block-like
- cjs-export
- class
- const
- export
- import
- let
- var
- blankLine: always
prev:
- "block"
- "block-like"
- "cjs-export"
- "class"
- "const"
- "export"
- "import"
- "let"
- "var"
- block
- block-like
- cjs-export
- class
- const
- export
- import
- let
- var
next: "*"
- blankLine: "any"
- blankLine: any
prev:
- "const"
- "let"
- "var"
- const
- let
- var
next:
- "const"
- "let"
- "var"
- blankLine: "never"
- const
- let
- var
- blankLine: never
prev:
- "import"
- import
next:
- "import"
- blankLine: "always"
- import
- blankLine: always
prev:
- "import"
- import
next:
- "export"
- blankLine: "any"
- export
- blankLine: any
prev:
- "export"
- export
next:
- "export"
- export
settings:
import/parsers:
"@typescript-eslint/parser":
- ".ts"
- .ts
34 changes: 29 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on: push
jobs:
build:
name: Build
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
Expand All @@ -23,11 +23,19 @@ jobs:
lint:
name: Lint Code
needs: build
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
- name: Linting
run: npm run lint
env:
Expand All @@ -36,11 +44,19 @@ jobs:
test_unit:
name: Unit Tests
needs: build
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
- name: Running unit tests
run: npm run test:unit

Expand All @@ -49,12 +65,20 @@ jobs:
needs:
- lint
- test_unit
runs-on: self-hosted
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Installing dependencies
run: npm ci
- name: Creating `.env` file
run: |
touch .env
Expand Down
Loading

0 comments on commit 0b8a563

Please sign in to comment.