-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Diaszano/test
Test
- Loading branch information
Showing
15 changed files
with
1,737 additions
and
791 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"ignorePatterns": [ | ||
"*/**.spec.ts" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project" : ["./tsconfig.json"] | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"security" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-empty-function": [ | ||
"error", | ||
{ "allow": ["constructors"] } | ||
], | ||
"no-alert": "error", | ||
"no-console": "error", | ||
"no-eval": "error", | ||
"no-process-exit": "error", | ||
"no-unused-vars": "error", | ||
"security/detect-buffer-noassert": "warn", | ||
"security/detect-child-process": "warn", | ||
"security/detect-non-literal-regexp": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: NPM Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_run: | ||
workflows: ["Run Tests", "Code Quality Check"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
npm_deploy: | ||
name: Execute NPM Deployment | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install Project Dependencies | ||
run: npm ci | ||
|
||
- name: Build Project | ||
run: npm run build | ||
|
||
- name: Generate Documentation | ||
run: npm run build:docs | ||
|
||
- name: Publish to NPM | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Code Quality Check | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
code_quality_verification: | ||
name: Code Quality Verification | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install Project Dependencies | ||
run: npm ci | ||
|
||
- name: Run Code Linting | ||
run: npm run lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run Tests | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run_tests: | ||
name: Execute Code Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install Project Dependencies | ||
run: npm ci | ||
|
||
- name: Run Code Tests | ||
run: npm test | ||
env: | ||
LINKETRACK_USER: ${{secrets.LINKETRACK_USER}} | ||
LINKETRACK_TOKEN: ${{secrets.LINKETRACK_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"*.ts": [ | ||
"npm run lint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Diretórios de configuração do VSCode | ||
.vscode/ | ||
|
||
# Configurações específicas do WebStorm | ||
.idea/ | ||
|
||
# Arquivos e diretórios do sistema | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Arquivos de configuração local | ||
.env | ||
.env.local | ||
.env.*.local | ||
|
||
# Arquivos TypeScript e diretórios de origem | ||
src/ | ||
*.ts | ||
*.tsx | ||
|
||
# Diretório de saída do TypeScript | ||
dist/ | ||
|
||
# Arquivos de teste | ||
test/ | ||
*.spec.ts | ||
*.test.ts | ||
*.test.tsx |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"arrowParens": "always" | ||
} |
Oops, something went wrong.