|
@@ -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
|