Skip to content
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
20 changes: 20 additions & 0 deletions .github/workflows/continuous_integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Continuous Integration FIAP
on:
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Git Checkout
uses: actions/checkout@v4

- name: Setup Java SDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Unit tests
run: mvn test
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Aplicação API
docker compose up --build
```

## Testes unitários (validação)
## Testes unitários (validação 14)

./mvnw test

Expand All @@ -25,3 +25,4 @@ http://localhost:8080/swagger-ui/index.html

![](/assets/images/swagger.png)

Editando para mostrar no Azure DevOps
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ services:
- "8080:8080"
environment:
- PROFILE=dev
- DATABASE_URL=jdbc:mysql://db:3306/api?createDatabaseIfNotExist=true
- DATABASE_URL=jdbc:mysql://bd-fiap-api-dev11.mysql.database.azure.com:3306/api?createDatabaseIfNotExist=true
- DATABASE_USER=root
- DATABASE_PWD=root_pass
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void testGivenNewProduto_whenCreate_thenSavedProduto() throws Exception{
@DisplayName("test fail")
@Test
void testGivenNewProduto_whenCreate_thenFail() throws Exception{
// fail("Um erro acontecerá");
fail("Um erro acontecerá");
}

}