5b98be3ccb
* build: add docs only workflow * build: add path filtering action * build: add actions/checkout * build: explicitly set shell to bash -_- * build: why regex when you could do something much dumber * build: correct conditionals * test: (do not merge) add base for testing * test: remove git base (used for testing)
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Electron Docs Compile
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
container:
|
|
required: true
|
|
description: 'Container to run the docs-only ts compile in'
|
|
type: string
|
|
|
|
concurrency:
|
|
group: electron-docs-only-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
docs-only:
|
|
name: Docs Only Compile
|
|
runs-on: aks-linux-medium
|
|
timeout-minutes: 20
|
|
container: ${{ fromJSON(inputs.container) }}
|
|
steps:
|
|
- name: Checkout Electron
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
|
|
with:
|
|
path: src/electron
|
|
fetch-depth: 0
|
|
- name: Install Dependencies
|
|
run: |
|
|
cd src/electron
|
|
node script/yarn install
|
|
- name: Run TS/JS compile
|
|
shell: bash
|
|
run: |
|
|
cd src/electron
|
|
node script/yarn create-typescript-definitions
|
|
node script/yarn tsc -p tsconfig.default_app.json --noEmit
|
|
for f in build/webpack/*.js
|
|
do
|
|
out="${f:29}"
|
|
if [ "$out" != "base.js" ]; then
|
|
node script/yarn webpack --config $f --output-filename=$out --output-path=./.tmp --env mode=development
|
|
fi
|
|
done
|