-
Notifications
You must be signed in to change notification settings - Fork 157
64 lines (50 loc) · 1.33 KB
/
ci.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
name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build_and_test:
name: Build and test
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Setup Server dependencies
working-directory: ./Server
run: |
npm install
- name: Build backend
working-directory: ./Server
shell: bash
run: |
npm run build
clean_frontend:
name: Run clean code tests on frontend
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install (dev) dependencies
working-directory: ./Calling
run: npm install
- name: Lint
working-directory: ./Calling
run: npm run lint
- name: Check all is pretty
working-directory: ./Calling
run: npm run prettier:check
- name: Build
working-directory: ./Calling
run: npm run build