feat: adiciona testes e melhorias de segurança

- Adiciona testes para auth service (createToken, createTokenPair, logout, refreshAccessToken)
- Adiciona testes para rate-limiting guard
- Adiciona testes para jwt strategy
- Remove arquivos SDK obsoletos
- Melhora validações e tratamento de erros em vários serviços
This commit is contained in:
joelson brito
2025-11-07 10:47:42 -03:00
parent a6cf4893cc
commit de4465ed60
23 changed files with 6209 additions and 4530 deletions

View File

@@ -1,58 +0,0 @@
name: Publish SDK to GitHub Packages
on:
push:
tags:
- 'sdk-v*'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
scope: '@portaljuru'
- name: Install dependencies
run: cd sdk && npm ci
- name: Build SDK
run: cd sdk && npm run build
- name: Publish to GitHub Packages
run: cd sdk && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: SDK ${{ github.ref }}
body: |
## SDK Portal Jurunense API
Nova versão publicada no GitHub Packages.
### Instalação
```bash
npm install @portaljuru/api-client
```
Veja o [CHANGELOG](./sdk/CHANGELOG.md) para detalhes.
draft: false
prerelease: false