-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f8a694
commit 4c82d17
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
docs/latest/.github/workflows/pipeline-electron-docs-only.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
with: | ||
path: src/electron | ||
fetch-depth: 0 | ||
- name: Install Dependencies | ||
run: | | ||
cd src/electron | ||
node script/yarn install --frozen-lockfile | ||
- 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 |