Skip to content

Commit 04fe14a

Browse files
author
Vitor
committed
final version of the README and final version of the project
1 parent d8e70f0 commit 04fe14a

9 files changed

Lines changed: 235 additions & 690 deletions

File tree

.env.test.compose.example

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
# Variáveis para docker-compose.test.yml
2-
# Copie este arquivo para .env.test.compose e ajuste os valores
3-
4-
# Credenciais do Banco de Dados
51
DB_USER=user
62
DB_PASSWORD=password
73

8-
# Configurações do Banco
94
DB_NAME=chat_db_test
10-
11-
# JWT Secret para testes (apenas para testes!)
125
JWT_SECRET=test_jwt_secret_for_integration_tests_only_do_not_use_in_production

.github/workflows/deploy.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ jobs:
2121
working-directory: ./websocket
2222
run: npm ci
2323

24-
- name: testes de validação do websocket
24+
- name: testes unitários
2525
working-directory: ./websocket
2626
run: npm test
2727

28+
- name: testes de integração
29+
working-directory: .
30+
run: docker-compose -f docker-compose.test.yml --env-file .env.test.compose up --build --abort-on-container-exit
31+
2832
# deploy:
2933
# needs: build-and-test
3034
# runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.env.test.compose
55
node_modules/
66
dist/
7-
.github/workflows/deploy.yaml
7+
88

99
# IDE
1010
.idea/

.nginx/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.nginx/nginx.conf

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)