浏览代码

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:
         image: postgres
         env:
-          POSTGRES_PASSWORD: ''
+          POSTGRES_PASSWORD: postgres
         options: >-
           --health-cmd pg_isready
           --health-interval 10s
@@ -19,8 +19,8 @@ jobs:
           --health-retries 5
         ports:
           - 5432:5432
-    strategy:
-      matrix:
+    strategy:	
+      matrix:	
         node-version: [14.x]
     steps:
     - 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/"!wiki "/"!test "/g' .env
     - run: npm test -- --timeout:60
+      env:
+        POSTGRES_HOST: localhost
+        POSTGRES_PORT: 5432
       timeout-minutes: 5