-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) Β· 1.04 KB
/
check-build.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
name: Check Build Possibility
on:
pull_request:
branches:
- dev
jobs:
try-frontend-build:
runs-on: ubuntu-20.04
env:
DISABLE_ESLINT_PLUGIN: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: "16.18.0"
- name: try build frontend
run: |
cd ./frontend
npm install
npm run build
try-backend-build:
runs-on: ubuntu-20.04
env:
MYSQL_HOST: ${{ secrets.MYSQL_HOST }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
MYSQL_USERNAME: ${{ secrets.MYSQL_USERNAME }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_DATABASE: ${{ secrets.MYSQL_DATABASE }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.5.1
with:
node-version: "16.18.0"
- name: try build backend
run: |
echo $MYSQL_HOST
cd ./backend
npm install
npm run build
npm test --detectOpenHandles --forceExit