2021-03-21 09:58:14 +03:00
|
|
|
name: Build
|
|
|
|
|
2021-03-31 20:15:29 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master, develop]
|
|
|
|
pull_request:
|
|
|
|
branches: [master, develop]
|
2021-03-21 09:58:14 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-11-07 05:24:00 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-03-21 09:58:14 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-11-07 05:24:00 +03:00
|
|
|
- name: Use Python
|
|
|
|
uses: actions/setup-python@v2
|
2021-03-21 09:58:14 +03:00
|
|
|
with:
|
2021-11-07 05:24:00 +03:00
|
|
|
python-version: 3.x
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v2
|
2021-03-21 09:58:14 +03:00
|
|
|
with:
|
2021-11-07 05:24:00 +03:00
|
|
|
node-version: 16.x
|
|
|
|
cache: npm
|
|
|
|
|
|
|
|
- name: Install Pipenv
|
|
|
|
run: pip install --upgrade pip && pip install pipenv
|
|
|
|
|
2021-03-21 09:58:14 +03:00
|
|
|
- name: Install
|
2021-11-07 05:24:00 +03:00
|
|
|
run: npm install
|
2021-03-21 09:58:14 +03:00
|
|
|
|
|
|
|
- name: Check setup
|
|
|
|
run: npm run check
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: npm run build
|