Skip to content

Commit e813692

Browse files
ci: add active profile for test execution in workflow
1 parent 3336386 commit e813692

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/springApp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
cache: 'maven'
3232

3333
- name: Run Tests
34-
run: mvn test -Dtest='!BookServiceTest#testChangeImage'
34+
run: mvn test -Dspring.profiles.active=test -Dtest='!BookServiceTest#testChangeImage'
3535
env:
3636
SPRING_DATASOURCE_URL: jdbc:mysql://localhost:3306/testdb
3737
SPRING_DATASOURCE_USERNAME: root

0 commit comments

Comments
 (0)