File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches : ['main']
6
+ pull_request :
7
+ branches : ['main']
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ${{ matrix.os }}
12
+
13
+ services :
14
+ mysql :
15
+ image : mysql:8.0
16
+ env :
17
+ MYSQL_ALLOW_EMPTY_PASSWORD : yes
18
+ MYSQL_DATABASE : nano_test
19
+ ports :
20
+ - 3306:3306
21
+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
22
+
23
+ strategy :
24
+ matrix :
25
+ os : [ubuntu-latest]
26
+
27
+ steps :
28
+ - name : Check out Git repository
29
+ uses : actions/checkout@v1
30
+
31
+ - name : Install Node.js, NPM and Yarn
32
+ uses : actions/setup-node@v3
33
+ with :
34
+ node-version : current
35
+
36
+ - name : yarn install
37
+ run : |
38
+ yarn install
39
+
40
+ - name : yarn test
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ run : |
44
+ yarn lint
45
+ yarn test
You can’t perform that action at this time.
0 commit comments