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
2021-03-22 20:23:43 +01:00

36 lines
844 B
YAML

name: Build
on: [push, pull_request]
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