diff --git a/.github/workflows/continuous_integration.yaml b/.github/workflows/continuous_integration.yaml new file mode 100644 index 0000000..2e2a56c --- /dev/null +++ b/.github/workflows/continuous_integration.yaml @@ -0,0 +1,23 @@ +name: Continuous Integration +on: + pull_request: + types: [opened, reopened] + branches: + - develop + +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 \ No newline at end of file diff --git a/README.md b/README.md index 541f35a..3da4aeb 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Aplicação API docker compose up --build ``` -## Testes unitários (validação) +## Testes unitários (validação nova) ./mvnw test diff --git a/compose.yaml b/compose.yaml index b7dc1b5..b11f93d 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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-dev-math.mysql.database.azure.com:3306/api?createDatabaseIfNotExist=true - DATABASE_USER=root - DATABASE_PWD=root_pass