-
Notifications
You must be signed in to change notification settings - Fork 34
39 lines (37 loc) · 951 Bytes
/
workflow.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
name: CI for restaurant
on:
pull_request:
branches: [release, main, development]
push:
branches: [release, main, development]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "16"
- name: ci for backend
working-directory: ./backend
run: |
npm i
npm run build
npm run test:unit
npm run test:cov
- name: lint backend
working-directory: ./backend
run: |
npm run format
- name: ci for frontend
working-directory: ./frontend
run: |
npm i
npm run build
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}