-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (63 loc) · 1.76 KB
/
services-branch.yaml
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
name: branch
on:
push:
branches-ignore:
- 'main'
paths:
- 'services/**'
jobs:
mankkoo:
name: mankkoo-core
runs-on: ubuntu-20.04
defaults:
run:
working-directory: services/mankkoo
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up Python 🐍
uses: actions/setup-python@master
with:
python-version: 3.10.3
- name: Set up Poetry 📜
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.3.2
- name: Install Poetry deps
run: |
poetry install
- name: Unit tests 🧪
run: |
poetry run pytest -s -vv --cov=./mankkoo
ui:
name: mankkoo-ui
runs-on: ubuntu-20.04
defaults:
run:
working-directory: services/mankkoo-ui
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Set up NodeJS ✨
uses: actions/setup-node@v3
with:
node-version: 20
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install package dependencies
run: npm install
# - name: Check linting and formatting
# # Custom script for checking the linting and formatting being in place
# run: npm run lint
- name: Create build 🏗️
run: npm run build