소스 검색

Add mongo url test

Daniel Bohry 1 년 전
부모
커밋
9456a96f07
3개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      .github/workflows/build.yml
  2. 3 0
      .github/workflows/buildAndRelease.yml
  3. 1 1
      src/test/resources/application.yml

+ 3 - 0
.github/workflows/build.yml

@@ -1,5 +1,8 @@
 name: Build and Test
 
+env:
+  MONGO: ${{ secrets.MONGO }}
+
 on:
   pull_request:
     branches: [ main ]

+ 3 - 0
.github/workflows/buildAndRelease.yml

@@ -1,5 +1,8 @@
 name: Release
 
+env:
+  MONGO: ${{ secrets.MONGO }}
+
 on:
   push:
     branches: [ main ]

+ 1 - 1
src/test/resources/application.yml

@@ -9,5 +9,5 @@ clients:
 spring:
   data:
     mongodb:
-      uri: ${mongo:}
+      uri: ${MONGO:}
       database: ${database:stocks-test}