File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments