2022-06-15 07:23:14 +00:00
|
|
|
name: build
|
2021-12-07 21:27:09 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
steps:
|
2022-01-20 21:01:34 +00:00
|
|
|
- name: Checkout repository and submodules
|
2022-06-15 07:23:14 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-01-20 21:03:55 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2024-03-07 09:23:36 +00:00
|
|
|
- name: Use Node.js 18.x
|
2022-06-15 07:23:14 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-12-08 19:23:14 +00:00
|
|
|
with:
|
2024-03-07 09:23:36 +00:00
|
|
|
node-version: 18.x
|
2022-06-15 07:23:14 +00:00
|
|
|
- name: Install testing dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Test all apps and widgets
|
|
|
|
run: npm test
|
|
|
|
- name: Install typescript dependencies
|
2021-12-10 20:51:35 +00:00
|
|
|
working-directory: ./typescript
|
|
|
|
run: npm ci
|
2022-06-15 07:23:14 +00:00
|
|
|
- name: Build all TS apps and widgets
|
2021-12-10 20:51:35 +00:00
|
|
|
working-directory: ./typescript
|
2022-06-15 07:23:14 +00:00
|
|
|
run: npm run build
|