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
on:
pull_request:
types: [opened, reopened]
branches: "feature/**"
jobs:
tests:
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
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://db-tdsor-api-dev.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á");
}

}