2021-12-07 21:27:09 +00:00
|
|
|
name: Node CI
|
|
|
|
|
2022-01-20 20:00:04 +00:00
|
|
|
on: [push, pull_request]
|
2021-12-07 21:27:09 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
|
|
|
|
|
|
|
steps:
|
2022-01-20 21:01:34 +00:00
|
|
|
- name: Checkout repository and submodules
|
2022-01-20 21:03:55 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-12-08 19:23:14 +00:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2022-01-20 20:41:41 +00:00
|
|
|
- name: install testing dependencies
|
|
|
|
run: npm i
|
|
|
|
- name: test all apps and widgets
|
|
|
|
run: npm run test
|
|
|
|
- name: install typescript dependencies
|
2021-12-10 20:51:35 +00:00
|
|
|
working-directory: ./typescript
|
|
|
|
run: npm ci
|
2021-12-08 19:23:14 +00:00
|
|
|
- name: build types
|
2021-12-10 20:51:35 +00:00
|
|
|
working-directory: ./typescript
|
2021-12-10 21:45:10 +00:00
|
|
|
run: npm run build:types
|
2022-01-20 20:09:57 +00:00
|
|
|
- name: build all TS apps and widgets
|
2021-12-10 20:51:35 +00:00
|
|
|
working-directory: ./typescript
|
2022-01-20 20:41:41 +00:00
|
|
|
run: npm run build
|