-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (45 loc) · 1.16 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
name: CI
on:
pull_request:
branches: [master, develop]
workflow_dispatch:
jobs:
client:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install package
run: yarn install --frozen-lockfile
- name: Run lint
run: yarn run lint
- name: Build test
run: yarn run build
server:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./server
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install pipenv
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
- name: Install dependencies
run: pipenv install --dev
- name: Generate .env
run: cp .env.example .env
- name: Run lint
run: pipenv run lint
- name: Run test
run: pipenv run test