Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #15

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
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
9 changes: 5 additions & 4 deletions .github/workflows/pull-request-pipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: On pull requests
on:
pull_request:
branches:
- main
- master
- develop

jobs:
Expand All @@ -20,7 +20,7 @@ jobs:
node-version: "20"

- name: Install dependencies
run: npm install
run: npm install --force

- name: Run Biome Check
run: npx biome check
Expand All @@ -38,7 +38,7 @@ jobs:
node-version: "20"

- name: Install dependencies
run: npm install
run: npm install --force

- name: Build Next.js Application
run: npm run build
Expand All @@ -47,6 +47,7 @@ jobs:
runs-on: ubuntu-latest
env:
DATABASE_URL: postgresql://gato:gato@localhost:5433/gatodb
JWT_SECRET: secret

steps:
- name: Checkout code
Expand All @@ -58,7 +59,7 @@ jobs:
node-version: "20"

- name: Install dependencies
run: npm install
run: npm install --force

- name: launch docker
run: docker compose up test-db -d
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Tecnologias usadas

- [NodeJS](https://nodejs.org/en/) - v20.7.0
- [NestJS](https://nestjs.com/)
- [Prisma](https://prisma.io/)
- [Plop](https://plopjs.com/)
Expand Down Expand Up @@ -35,6 +36,7 @@ Antes de todo commit, execute o comando `npm run pipe` para assegurar que a api
- Execute os seguintes comandos:

```bash
npm install
# Estamos usando force, pois o nestjs-zod tem uma versão menor do nestjs/common, mas é compatível.
npm install --force
npm dev
```
5 changes: 5 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
}
}
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
},
"organizeImports": {
"enabled": true
},
Expand Down
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
version: '3.8'
version: "3.8"

services:
dev-db:
image: postgres:latest
container_name: gato-dev-db
restart: always
environment:
POSTGRES_USER: gato
POSTGRES_PASSWORD: gato
Expand All @@ -15,11 +14,9 @@ services:
test-db:
image: postgres:latest
container_name: gato-test-db
restart: always
environment:
POSTGRES_USER: gato
POSTGRES_PASSWORD: gato
POSTGRES_DB: gatodb
ports:
- "5433:5432"

4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
module.exports = {
moduleFileExtensions: ["js", "json", "ts"],
rootDir: "test",
rootDir: "src/test",
testEnvironment: "node",
transform: {
"^.+.ts?$": ["ts-jest", {}],
Expand Down
Loading