-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-vscode-debugger
- Loading branch information
Showing
397 changed files
with
16,544 additions
and
10,381 deletions.
There are no files selected for viewing
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,171 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: electronjs/[email protected] | ||
|
||
commands: | ||
install: | ||
steps: | ||
- run: git config --global core.autocrlf input | ||
- node/install: | ||
node-version: '18.15.0' | ||
- checkout | ||
run-lint-and-build: | ||
steps: | ||
- node/install-packages | ||
- run: | ||
name: 'Lint codebase' | ||
command: | | ||
yarn lint | ||
yarn syncpack | ||
- run: | ||
name: 'Build Electron Forge' | ||
command: | | ||
yarn build | ||
run-fast-tests: | ||
steps: | ||
- node/install-packages: | ||
with-cache: false | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: 'Run fast tests' | ||
command: | | ||
yarn test:fast | ||
run-slow-tests: | ||
steps: | ||
- node/install-packages: | ||
with-cache: false | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
name: 'Run slow tests' | ||
command: | | ||
echo $(circleci tests glob "packages/**/*_spec_slow.ts") | ||
TEST_GLOB=$(circleci tests glob "packages/**/*_spec_slow.ts" | circleci tests split --split-by=timings) | ||
yarn test $TEST_GLOB | ||
jobs: | ||
lint-and-build: | ||
executor: node/linux | ||
steps: | ||
- install | ||
- run-lint-and-build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- packages/*/*/dist/* | ||
|
||
fast-tests: | ||
parameters: | ||
executor: | ||
type: string | ||
arch: | ||
type: enum | ||
enum: ['x64', 'arm64'] | ||
executor: << parameters.executor >> | ||
steps: | ||
- install | ||
- when: | ||
condition: | ||
equal: [node/linux, << parameters.executor >>] | ||
steps: | ||
- run: | ||
name: Linux specific setup | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
--no-install-recommends \ | ||
xvfb \ | ||
libnss3 \ | ||
libasound2 \ | ||
libatk1.0-0 \ | ||
libatk-bridge2.0-0 \ | ||
libgdk-pixbuf2.0-dev \ | ||
libgtk-3-0 \ | ||
libgbm1 | ||
sudo add-apt-repository -y ppa:alexlarsson/flatpak | ||
- run-fast-tests | ||
- store_test_results: | ||
path: ./reports/ | ||
slow-tests: | ||
parameters: | ||
executor: | ||
type: string | ||
arch: | ||
type: enum | ||
enum: ['x64', 'arm64'] | ||
executor: << parameters.executor >> | ||
parallelism: 2 | ||
steps: | ||
- install | ||
- when: | ||
condition: | ||
equal: [node/windows, << parameters.executor >>] | ||
steps: | ||
- run: | ||
name: Windows Setup | ||
shell: bash | ||
command: | | ||
choco install --no-progress -y wixtoolset | ||
echo 'export PATH=$PATH:"/C/Program Files (x86)/WiX Toolset v3.11/bin"' >> "$BASH_ENV" | ||
cd 'C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\run-script' | ||
npm install [email protected] | ||
- when: | ||
condition: | ||
equal: [node/linux, << parameters.executor >>] | ||
steps: | ||
- run: | ||
name: Linux specific setup | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
--no-install-recommends \ | ||
xvfb \ | ||
libnss3 \ | ||
libasound2 \ | ||
libatk1.0-0 \ | ||
libatk-bridge2.0-0 \ | ||
libgdk-pixbuf2.0-dev \ | ||
libgtk-3-0 \ | ||
libgbm1 | ||
- run-slow-tests | ||
- run: | ||
when: always # the report is generated on pass or fail | ||
name: Make test report paths relative | ||
command: | | ||
if [ -e ./reports/out/test_output.xml ]; then | ||
sed -i.bak "s|`pwd`/||g" ./reports/out/test_output.xml | ||
fi | ||
- store_test_results: | ||
path: ./reports/ | ||
|
||
workflows: | ||
tests: | ||
jobs: | ||
- lint-and-build | ||
- fast-tests: | ||
requires: | ||
- lint-and-build | ||
matrix: | ||
parameters: | ||
executor: [node/windows, node/linux, node/macos] | ||
arch: [x64, arm64] | ||
exclude: | ||
- executor: node/windows | ||
arch: arm64 | ||
- executor: node/linux | ||
arch: arm64 | ||
- slow-tests: | ||
requires: | ||
- lint-and-build | ||
matrix: | ||
parameters: | ||
executor: [node/windows, node/linux, node/macos] | ||
arch: [x64, arm64] | ||
exclude: | ||
- executor: node/windows | ||
arch: arm64 | ||
- executor: node/linux | ||
arch: arm64 |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ packages/*/*/doc | |
packages/*/*/index.ts | ||
packages/**/bad.js | ||
tmpl | ||
packages/api/core/helper/dynamic-import.js |
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
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 @@ | ||
* text=auto eol=lf |
Validating CODEOWNERS rules …
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 @@ | ||
* @electron/wg-ecosystem |
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
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
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 |
---|---|---|
@@ -1,43 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
# Check the npm registry for updates every weekday | ||
schedule: | ||
interval: 'daily' | ||
ignore: # Everything not annotated here is documented in tools/update-dependencies.js | ||
# @aws-sdk/* upgrades too often, do this manually | ||
- dependency-name: '@aws-sdk/abort-controller' | ||
- dependency-name: '@aws-sdk/client-s3' | ||
- dependency-name: '@aws-sdk/lib-storage' | ||
- dependency-name: '@aws-sdk/types' | ||
- dependency-name: '@types/node-fetch' | ||
- dependency-name: 'chalk' | ||
- dependency-name: commander | ||
- dependency-name: electron-osx-sign | ||
- dependency-name: eslint-plugin-mocha | ||
- dependency-name: find-up | ||
- dependency-name: log-symbols | ||
- dependency-name: node-fetch | ||
- dependency-name: ora | ||
- dependency-name: username | ||
- package-ecosystem: 'npm' | ||
directory: '/packages/template/typescript/tmpl' | ||
# Check the npm registry for updates every weekday | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'npm' | ||
directory: '/packages/template/typescript-webpack/tmpl' | ||
# Check the npm registry for updates every weekday | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'npm' | ||
directory: '/packages/template/webpack/tmpl' | ||
# Check the npm registry for updates every weekday | ||
schedule: | ||
interval: 'daily' | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
# Check for updates to GitHub Actions every weekday | ||
interval: 'daily' | ||
interval: 'monthly' |
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
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,29 @@ | ||
name: Add to Ecosystem WG Project | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
pull_request_target: | ||
types: | ||
- opened | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
add-to-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate GitHub App token | ||
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1 | ||
id: generate-token | ||
with: | ||
creds: ${{ secrets.ECOSYSTEM_ISSUE_TRIAGE_GH_APP_CREDS }} | ||
org: electron | ||
- name: Add to Project | ||
uses: dsanders11/project-actions/add-item@82e99438bd44a14ad18d92d036dbc25cbfb9a8c4 # v1.2.0 | ||
with: | ||
field: Opened | ||
field-value: ${{ github.event.pull_request.created_at || github.event.issue.created_at }} | ||
project-number: 89 | ||
token: ${{ steps.generate-token.outputs.token }} |
Oops, something went wrong.