web-apps/.github/workflows/check.yml
Pavel Lobashov a66e1daac3
Fix building web-apps by require sdkjs (#725)
Since this commit on develop
3636bf78c4
web-apps require file from `sdkjs` named
```
'../../../../sdkjs/common/device_scale.js'
```
So cloning of sdkjs is bring back
Currently it will close `sdkjs#develop` for any branches,
since implement cloning different branches for different
PR destanation in GitHub Actions is not a trivial task and
will take time to develop.
But maybe current variant will be enough in major cases
2021-03-01 11:03:35 +03:00

19 lines
512 B
YAML

name: check
on: [push]
jobs:
project-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Build using grunt
run: |
npm install --prefix build
cd ..
git clone --branch=develop --depth=1 https://github.com/ONLYOFFICE/sdkjs.git
cd web-apps
grunt --level=ADVANCED --base build --gruntfile build/Gruntfile.js