1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 21:19:45 +03:00
leon/.github/workflows/build.yml

40 lines
911 B
YAML

name: Build
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
build:
runs-on: ubuntu-20.04
container: leonai/ci:latest
steps:
- uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Cache Pipenv
uses: actions/cache@v2
with:
path: bridges/python/.venv
key: ${{ runner.os }}-pipenv-${{ env.cache-name }}-${{ hashFiles('bridges/python/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- name: Install
run: npm ci
- name: Check setup
run: npm run check
- name: Build
run: npm run build