Skip to content

Commit abe4d94

Browse files
authored
fix (#133)
1 parent 57884cb commit abe4d94

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
services:
12+
postgres:
13+
image: postgres:15
14+
env:
15+
POSTGRES_PASSWORD: synapse_password
16+
POSTGRES_USER: synapse_user
17+
POSTGRES_DB: synapse
18+
options: >-
19+
--health-cmd pg_isready
20+
--health-interval 10s
21+
--health-timeout 5s
22+
--health-retries 5
23+
ports:
24+
- 5432:5432
25+
26+
mysql:
27+
image: mysql:8.0
28+
env:
29+
MYSQL_ROOT_PASSWORD: synapse_root_password
30+
MYSQL_DATABASE: synapse
31+
MYSQL_USER: synapse_user
32+
MYSQL_PASSWORD: synapse_password
33+
options: >-
34+
--health-cmd="mysqladmin ping"
35+
--health-interval=10s
36+
--health-timeout=5s
37+
--health-retries=3
38+
ports:
39+
- 3306:3306
40+
1141
steps:
1242
- uses: actions/checkout@v4
1343
- uses: actions/setup-node@v4
@@ -20,6 +50,9 @@ jobs:
2050
- run: yarn build
2151
- run: yarn lint
2252
- run: yarn test
53+
env:
54+
DB_PG: postgresql://synapse_user:synapse_password@localhost:5432/synapse
55+
DB_MYSQL: mysql://synapse_user:synapse_password@localhost:3306/synapse
2356
- run: npm publish
2457
env:
2558
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)