Skip to content

Commit

Permalink
Merge pull request #1 from vanderleik/testewf
Browse files Browse the repository at this point in the history
feat: testando CI/CD
  • Loading branch information
vanderleik authored Jul 9, 2024
2 parents 6374c66 + fff341a commit 0562626
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 20 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand All @@ -17,7 +16,7 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build and execute testes with Maven on 'cadastro'
- name: Build and execute testes with Maven
run: |
mvn -B package --file pom.xml
mvn test
mvn -B -e -X package --file pom.xml
mvn -B -e test
3 changes: 1 addition & 2 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ spring:

show-sql: true


logging:
level:
org:
Expand All @@ -24,4 +23,4 @@ spring:
port: 8080

config:
import: optional:file:.env[.*]
import: optional:file:.env[.*]
3 changes: 3 additions & 0 deletions src/main/resources/application-test.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
spring:

datasource:
url: jdbc:h2:mem:testdb
driver-class-name: org.h2.Driver
username: sa
password:

jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: create-drop
show-sql: true

h2:
console:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
spring:
profiles:
active: local # Define o perfil ativo padrão como local
active: local

This file was deleted.

0 comments on commit 0562626

Please sign in to comment.