File tree Expand file tree Collapse file tree 4 files changed +6
-21
lines changed
Expand file tree Collapse file tree 4 files changed +6
-21
lines changed Original file line number Diff line number Diff line change 2323 node-version : ${{ env.NODE_VER }}
2424 - uses : actions/checkout@v6
2525 - run : npm install
26- - name : Set MySQL credentials for CI
27- run : |
28- sed -i 's/^user\s*=.*/user = "root"/' conf.d/mysql.toml
29- sed -i 's/^password\s*=.*/password = "root"/' conf.d/mysql.toml
3026 - name : Initialize MySQL
3127 run : sh sql/init-mysql.sh
3228 - name : run coverage
6864 node-version : ${{ matrix.node-version }}
6965 - run : sh sql/init-mysql.sh
7066 - run : npm install
71- - name : Set MySQL credentials for CI
72- run : |
73- sed -i 's/^user\s*=.*/user = "root"/' conf.d/mysql.toml
74- sed -i 's/^password\s*=.*/password = "root"/' conf.d/mysql.toml
7567 - run : npm test
7668
7769 test-mac :
9385 node-version : ${{ matrix.node-version }}
9486 - run : sh sql/init-mysql.sh
9587 - run : npm install
96- - name : Set MySQL credentials for CI
97- run : |
98- sed -i '' 's/^user[[:space:]]*=.*/user = "root"/' conf.d/mysql.toml
99- sed -i '' 's/^password[[:space:]]*=.*/password = "root"/' conf.d/mysql.toml
10088 - run : npm test
10189
10290 test-win :
@@ -119,8 +107,4 @@ jobs:
119107 node-version : ${{ matrix.node-version }}
120108 - run : sh sql/init-mysql.sh
121109 - run : npm install
122- - name : Set MySQL credentials for CI
123- run : |
124- sed -i 's/^user\s*=.*/user = "root"/' conf.d/mysql.toml
125- sed -i 's/^password\s*=.*/password = "root"/' conf.d/mysql.toml
126110 - run : sh test.sh
Original file line number Diff line number Diff line change 1919 node-version : ${{ env.node-version }}
2020 - run : sh sql/init-mysql.sh
2121 - run : npm install
22- - name : Set MySQL credentials for CI
23- run : |
24- sed -i 's/^user\s*=.*/user = "root"/' conf.d/mysql.toml
25- sed -i 's/^password\s*=.*/password = "root"/' conf.d/mysql.toml
2622 - run : npm test
2723
2824 publish-npm :
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ clearInvalid = true
1515isSameSite = " Strict"
1616isSecure = true
1717isHttpOnly = false
18- # password = "" # hint: openssl rand -hex 16
18+ password = " " # hint: openssl rand -hex 16
Original file line number Diff line number Diff line change 22
33set -eu
44
5+ if [ " ${CI:- } " = " true" ]; then
6+ sed -i.bak ' s/^user[[:space:]]*=.*/user = "root"/' conf.d/mysql.toml && rm -f conf.d/mysql.toml.bak
7+ sed -i.bak ' s/^password[[:space:]]*=.*/password = "root"/' conf.d/mysql.toml && rm -f conf.d/mysql.toml.bak
8+ fi
9+
510NODE=" node --no-warnings=ExperimentalWarning"
611$NODE test-fixtures.js teardown
712$NODE test-fixtures.js setup
You can’t perform that action at this time.
0 commit comments