File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,15 +29,22 @@ jobs:
2929 coverage :
3030 needs : [lint]
3131 runs-on : ubuntu-latest
32+ services :
33+ mysql :
34+ image : mysql:8
35+ env :
36+ MYSQL_ROOT_PASSWORD : password
37+ MYSQL_DATABASE : casbin
38+ ports :
39+ - 3306:3306
40+ options : >-
41+ --health-cmd="mysqladmin ping"
42+ --health-interval=10s
43+ --health-timeout=5s
44+ --health-retries=10
3245 steps :
3346 - uses : actions/checkout@v4
3447
35- - name : Setup MySQL
36- uses : mirromutth/mysql-action@v1.1
37- with :
38- mysql database : casbin
39- mysql root password : password
40-
4148 - name : Set up Node.js
4249 uses : actions/setup-node@v4
4350 with :
@@ -50,26 +57,32 @@ jobs:
5057 run : yarn run coverage
5158
5259 - name : Coveralls
53- uses : coverallsapp/github-action@v2
54- with :
55- github-token : ${{ secrets.GITHUB_TOKEN }}
56- parallel : true
60+ run : yarn coveralls < coverage/lcov.info
61+ env :
62+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5763
5864 test :
5965 needs : [lint]
6066 runs-on : ubuntu-latest
6167 strategy :
6268 matrix :
6369 node : [^20]
70+ services :
71+ mysql :
72+ image : mysql:8
73+ env :
74+ MYSQL_ROOT_PASSWORD : password
75+ MYSQL_DATABASE : casbin
76+ ports :
77+ - 3306:3306
78+ options : >-
79+ --health-cmd="mysqladmin ping"
80+ --health-interval=10s
81+ --health-timeout=5s
82+ --health-retries=10
6483 steps :
6584 - uses : actions/checkout@v4
6685
67- - name : Setup MySQL
68- uses : mirromutth/mysql-action@v1.1
69- with :
70- mysql database : casbin
71- mysql root password : password
72-
7386 - name : Set up Node.js
7487 uses : actions/setup-node@v4
7588 with :
You can’t perform that action at this time.
0 commit comments