Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
31 changes: 0 additions & 31 deletions .config/biome.json

This file was deleted.

8 changes: 0 additions & 8 deletions .config/jest.config.js

This file was deleted.

46 changes: 0 additions & 46 deletions .config/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body:
attributes:
label: "Ambiente"
description: "Informe o sistema operacional, navegador ou versão da lib/API envolvida"
placeholder: "Ex: Fedora 41, Node 20.11.1"
placeholder: "Ex: Fedora 41, Bun v1.3.5"

- type: textarea
id: logs
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
- package-ecosystem: "bun"
directory: "/" # onde está o package.json
schedule:
interval: "weekly"
Expand Down
64 changes: 23 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,33 @@ permissions:
pull-requests: read

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint

format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run format

test-with-coverage:
name: Test com Cobertura
quality:
name: Lint, Format & Test (Bun)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout PR
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/setup-node@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run test:coverage
- uses: actions/upload-artifact@v4
bun-version: latest

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Lint & Format (Biome)
run: bun run biome:check

- name: Run tests with coverage
run: bun run test:coverage

- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: cobertura-html
path: coverage/lcov-report
name: coverage-html
path: coverage/lcov-report
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
bun-version: latest

- name: Install dependencies
run: npm ci
run: bun install --frozen-lockfile

- name: Create .npmrc
run: |
Expand All @@ -40,7 +39,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
publish: bun run release
title: "release: nova versão"
commit: "chore: nova versão gerada automaticamente pelo changeset"
env:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Not sure where to start? You can look for issues tagged with `good first issue`

4. **Set Up Environment and Install Dependencies:**
* Follow the instructions in the specific SDK's `README.md` to set up the development environment and install dependencies. Generally:
* Node.js: `npm install` (or `yarn install`)
* Node.js: `bun install` (or `yarn install`)
* Go: `go mod tidy`
* Python: `pip install -r requirements.txt` (or use Poetry/PDM if specified in the project)
* PHP: `composer install`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Official AbacatePay SDK - Accept payments in seconds with a simple integration.
## Installation

```bash
npm install abacatepay-nodejs-sdk
bun install abacatepay-nodejs-sdk
```

## Quick Usage
Expand Down
45 changes: 45 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"files": {
"ignoreUnknown": true
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"formatWithErrors": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "error",
"noUndeclaredVariables": "error"
},
"suspicious": {
"noConsole": "error"
},
"style": {
"useEnumInitializers": "off",
"noNonNullAssertion": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always"
}
},
"assist": {
"actions": {
"recommended": true
}
}
}
Loading
Loading