You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build.yaml
+7-16Lines changed: 7 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ on:
6
6
branches:
7
7
- master
8
8
schedule:
9
-
- cron: '0 0 * * 0'# weekly
9
+
- cron: "0 0 * * 0"# weekly
10
10
11
11
jobs:
12
12
test:
@@ -46,18 +46,9 @@ jobs:
46
46
run: |
47
47
sudo systemctl start mysql.service
48
48
sleep 5 && mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';" -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
49
+
mysql -e "SET GLOBAL sql_require_primary_key = ON;" -uroot
49
50
- run: npm run lint
50
-
# Temporary work around jest memory leaks https://github.com/facebook/jest/issues/11956
51
-
- run: |
52
-
shopt -s globstar
53
-
set -e
54
-
for x in server/test/*.test.js; do (node --expose-gc ./node_modules/.bin/jest "$x" && sh -c 'mv coverage/coverage-final.json "coverage/$(basename "$1" .js).json"' sh "$x") || exit 1; done
55
-
for x in cli/test/*.test.js; do (node --expose-gc ./node_modules/.bin/jest "$x" && sh -c 'mv coverage/coverage-final.json "coverage/$(basename "$1" .js).json"' sh "$x") || exit 1; done
0 commit comments