소스 검색

Update nodejs.yml

MarkusRost 4 년 전
부모
커밋
ce7f028920
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      .github/workflows/nodejs.yml

+ 6 - 3
.github/workflows/nodejs.yml

@@ -11,7 +11,7 @@ jobs:
       postgres:
       postgres:
         image: postgres
         image: postgres
         env:
         env:
-          POSTGRES_PASSWORD: ''
+          POSTGRES_PASSWORD: postgres
         options: >-
         options: >-
           --health-cmd pg_isready
           --health-cmd pg_isready
           --health-interval 10s
           --health-interval 10s
@@ -19,8 +19,8 @@ jobs:
           --health-retries 5
           --health-retries 5
         ports:
         ports:
           - 5432:5432
           - 5432:5432
-    strategy:
-      matrix:
+    strategy:	
+      matrix:	
         node-version: [14.x]
         node-version: [14.x]
     steps:
     steps:
     - uses: actions/checkout@v2
     - uses: actions/checkout@v2
@@ -34,4 +34,7 @@ jobs:
     - run: sed -i -e 's/"<Discord client secret>"/"${{secrets.DISCORD_SECRET}}"/g' .env
     - run: sed -i -e 's/"<Discord client secret>"/"${{secrets.DISCORD_SECRET}}"/g' .env
     - run: sed -i -e 's/"!wiki "/"!test "/g' .env
     - run: sed -i -e 's/"!wiki "/"!test "/g' .env
     - run: npm test -- --timeout:60
     - run: npm test -- --timeout:60
+      env:
+        POSTGRES_HOST: localhost
+        POSTGRES_PORT: 5432
       timeout-minutes: 5
       timeout-minutes: 5