-
Notifications
You must be signed in to change notification settings - Fork 175
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
Showing
36 changed files
with
1,952 additions
and
4,686 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 |
---|---|---|
@@ -1,98 +1,62 @@ | ||
step-restore-cache: &step-restore-cache | ||
restore_cache: | ||
keys: | ||
- v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} | ||
|
||
steps-test: &steps-test | ||
steps: | ||
- checkout | ||
- *step-restore-cache | ||
- run: | ||
name: Install Node | ||
command: | | ||
case "$(uname -s)" in | ||
Darwin) | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash | ||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
nvm install 12 | ||
nvm alias default 12 | ||
echo 'export NVM_DIR=${HOME}/.nvm' >> $BASH_ENV | ||
echo "[ -s '${NVM_DIR}/nvm.sh' ] && . '${NVM_DIR}/nvm.sh'" >> $BASH_ENV | ||
;; | ||
Windows*|CYGWIN*|MINGW*|MSYS*) | ||
nvm install 12.22.4 | ||
nvm use 12.22.4 | ||
;; | ||
esac | ||
- run: yarn install --frozen-lockfile | ||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} | ||
- run: yarn run lint | ||
- run: | ||
name: Tests with code coverage | ||
command: yarn run coverage | ||
environment: | ||
DEBUG: electron-rebuild | ||
- run: yarn run codecov | ||
|
||
|
||
version: 2.1 | ||
|
||
orbs: | ||
win: circleci/windows@1.0.0 | ||
jobs: | ||
test-linux-12: | ||
docker: | ||
- image: circleci/node:12-buster | ||
<<: *steps-test | ||
test-linux-14: | ||
docker: | ||
- image: circleci/node:14-buster | ||
<<: *steps-test | ||
test-linux-16: | ||
docker: | ||
- image: circleci/node:16-buster | ||
<<: *steps-test | ||
test-mac: | ||
macos: | ||
xcode: "12.2.0" | ||
<<: *steps-test | ||
test-windows: | ||
executor: | ||
name: win/vs2019 | ||
shell: bash.exe | ||
cfa: continuousauth/npm@1.0.2 | ||
node: electronjs/node@1.2.0 | ||
|
||
executors: | ||
windows: | ||
environment: | ||
GYP_MSVS_VERSION: '2019' | ||
<<: *steps-test | ||
GYP_MSVS_VERSION: '2022' | ||
machine: | ||
image: windows-server-2022-gui:stable | ||
resource_class: windows.medium | ||
shell: bash.exe | ||
|
||
release: | ||
docker: | ||
- image: circleci/node:16 | ||
steps: | ||
- checkout | ||
- *step-restore-cache | ||
- run: yarn install --frozen-lockfile | ||
- run: npx semantic-release | ||
workflows: | ||
version: 2 | ||
test_and_release: | ||
# Run the test jobs first, then the release only when all the test jobs are successful | ||
jobs: | ||
- test-linux-16 | ||
- test-linux-12 | ||
- test-linux-14 | ||
- test-mac | ||
- test-windows | ||
- release: | ||
- node/test: | ||
name: test-<< matrix.executor >>-<< matrix.node-version >> | ||
override-ci-command: yarn install --frozen-lockfile --ignore-engines | ||
pre-steps: | ||
- run: git config --global core.autocrlf input | ||
- when: | ||
condition: | ||
equal: [ windows, << matrix.executor >> ] | ||
steps: | ||
- run: | ||
name: Enable Long Paths | ||
command: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force | ||
shell: powershell.exe | ||
test-steps: | ||
- run: yarn run lint | ||
- run: | ||
name: Tests with code coverage | ||
command: yarn run coverage | ||
environment: | ||
DEBUG: electron-rebuild | ||
- run: yarn run codecov | ||
use-test-steps: true | ||
matrix: | ||
alias: test | ||
parameters: | ||
executor: | ||
- node/linux | ||
- node/macos | ||
- windows | ||
node-version: | ||
- 20.2.0 | ||
- 18.16.0 | ||
- 16.20.0 | ||
- 14.21.3 | ||
- 12.22.12 | ||
- cfa/release: | ||
requires: | ||
- test-linux-16 | ||
- test-linux-12 | ||
- test-linux-14 | ||
- test-mac | ||
- test-windows | ||
- test | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
- main | ||
context: cfa-release |
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 was deleted.
Oops, something went wrong.
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@3a81985616963f32fae17d1d1b406c631f3201a1 # v1.1.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 }} |
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,26 @@ | ||
name: "Check Semantic Commit" | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
main: | ||
permissions: | ||
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs | ||
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR | ||
name: Validate PR Title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: semantic-pull-request | ||
uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54 # v5.2.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
validateSingleCommit: false |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) Contributors to the Electron project | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Oops, something went wrong.