-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (52 loc) · 1.42 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: noxus
on:
# Triggers the workflow on push or pull request events but only for the Dev branch
# push:
# branches: [ dev ]
pull_request:
branches: [ dev ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'
strategy:
matrix:
node-version: [16.x]
steps:
- name: pulls code from github repo
uses: actions/checkout@v2
- name: setup a node environment
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
# cache-dependency-path: './package-lock.json'
- name: Install dependencies
run: |
pwd
npm i
npm run build --if-present
npm run test
env:
CI: false
build-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: Backend
steps:
- name: pulls code from github repo
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi