File tree Expand file tree Collapse file tree 3 files changed +30
-25
lines changed Expand file tree Collapse file tree 3 files changed +30
-25
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push]
4
+
5
+ env :
6
+ MYSQL_HOST : 127.0.0.1
7
+ MYSQL_USER : root
8
+ MYSQL_PASSWORD : root
9
+ MYSQL_DATABASE : test_db
10
+
11
+ jobs :
12
+ test :
13
+ strategy :
14
+ matrix :
15
+ node-version : [16, 18, 19]
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Start MySQL
19
+ run : |
20
+ sudo /etc/init.d/mysql start
21
+ mysql -u${{ env.MYSQL_USER }} -p${{ env.MYSQL_PASSWORD }} -e "ALTER USER '${{ env.MYSQL_USER }}'@'localhost' IDENTIFIED WITH mysql_native_password BY '${{ env.MYSQL_PASSWORD }}';"
22
+ - name : Check out code
23
+ uses : actions/checkout@v3
24
+ - name : Use Node.js ${{ matrix.node-version }}
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version : ${{ matrix.node-version }}
28
+ - run : npm install
29
+ - run : npm test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# mysql-plus
2
2
3
3
[ ![ NPM Version] ( https://img.shields.io/npm/v/mysql-plus.svg )] ( https://www.npmjs.com/package/mysql-plus )
4
- [ ![ Build Status] ( https://travis-ci.org/ nwoltman/node-mysql-plus.svg ?branch=master )] ( https://travis-ci.org /nwoltman/node-mysql-plus )
4
+ [ ![ Build Status] ( https://img.shields.io/github/actions/workflow/status/ nwoltman/node-mysql-plus/ci.yml ?branch=master )] ( https://github.com /nwoltman/node-mysql-plus/actions/workflows/ci.yml?query=branch%3A+master )
5
5
[ ![ Coverage Status] ( https://coveralls.io/repos/github/nwoltman/node-mysql-plus/badge.svg?branch=master )] ( https://coveralls.io/github/nwoltman/node-mysql-plus?branch=master )
6
6
[ ![ dependencies Status] ( https://david-dm.org/nwoltman/node-mysql-plus/status.svg )] ( https://david-dm.org/nwoltman/node-mysql-plus )
7
7
[ ![ devDependencies Status] ( https://david-dm.org/nwoltman/node-mysql-plus/dev-status.svg )] ( https://david-dm.org/nwoltman/node-mysql-plus?type=dev )
You can’t perform that action at this time.
0 commit comments