pipeline-electron-docs-only.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Electron Docs Compile
  2. on:
  3. workflow_call:
  4. inputs:
  5. container:
  6. required: true
  7. description: 'Container to run the docs-only ts compile in'
  8. type: string
  9. concurrency:
  10. group: electron-docs-only-${{ github.ref }}
  11. cancel-in-progress: true
  12. jobs:
  13. docs-only:
  14. name: Docs Only Compile
  15. runs-on: electron-arc-linux-amd64-4core
  16. timeout-minutes: 20
  17. container: ${{ fromJSON(inputs.container) }}
  18. steps:
  19. - name: Checkout Electron
  20. uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
  21. with:
  22. path: src/electron
  23. fetch-depth: 0
  24. ref: ${{ github.event.pull_request.head.sha }}
  25. - name: Install Dependencies
  26. uses: ./src/electron/.github/actions/install-dependencies
  27. - name: Run TS/JS compile
  28. shell: bash
  29. run: |
  30. cd src/electron
  31. node script/yarn create-typescript-definitions
  32. node script/yarn tsc -p tsconfig.default_app.json --noEmit
  33. for f in build/webpack/*.js
  34. do
  35. out="${f:29}"
  36. if [ "$out" != "base.js" ]; then
  37. node script/yarn webpack --config $f --output-filename=$out --output-path=./.tmp --env mode=development
  38. fi
  39. done