-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (86 loc) · 2.6 KB
/
pullrequest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Pull Request Check
on:
pull_request:
branches:
- main
- dev
jobs:
ServerUnitest:
name: Server unitest
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server/
steps:
- uses: mirromutth/mysql-action@v1.1
with:
host port: 3306 # Optional, default value is 3306. The port of host
container port: 3307 # Optional, default value is 3306. The port of container
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
mysql version: '5' # Optional, default value is "latest". The version of the MySQL
mysql database: 'torzo_photo_test' # Optional, default value is "test". The specified database which will be create
mysql root password: 'vechk123' # Required if "mysql user" is empty, default is empty. The root superuser password
mysql user: 'developer' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
mysql password: 123 # Required if "mysql user" exists. The password for the "mysql user"
- name: Copy Repo Files
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.17.0'
- name: test
run: |
npm install
npm run test
DashboardESLint:
name: Dashboard ESLint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./dashboard/
steps:
- name: Copy Repo Files
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
- name: ESLint
run: |
npm install
npm run lint
FrontESlint:
name: Front ESlint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./front/
steps:
- name: Copy Repo Files
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- name: ESLint
run: |
yarn
yarn lint-strict
FrontTSC:
name: Front TSC
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./front/
steps:
- name: Copy Repo Files
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- name: yarn tsc --noEmit
run: |
yarn
yarn tsc --noEmit