-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into set-resource-strings
- Loading branch information
Showing
9 changed files
with
176 additions
and
1,071 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,131 +1,88 @@ | ||
step-env: &step-env | ||
run: | ||
# prevent Wine popup dialogs about installing additional packages | ||
name: Setup Environment Variables | ||
command: | | ||
echo 'export WINEDLLOVERRIDES="mscoree,mshtml="' >> $BASH_ENV | ||
echo 'export WINEDEBUG="-all"' >> $BASH_ENV | ||
step-restore-brew-cache: &step-restore-brew-cache | ||
restore_cache: | ||
name: Restoring Homebrew cache | ||
paths: | ||
- /usr/local/Homebrew | ||
keys: | ||
- v1-brew-cache-{{ arch }} | ||
|
||
step-save-brew-cache: &step-save-brew-cache | ||
save_cache: | ||
name: Persisting Homebrew cache | ||
paths: | ||
- /usr/local/Homebrew | ||
key: v1-brew-cache-{{ arch }} | ||
|
||
step-restore-cache: &step-restore-cache | ||
restore_cache: | ||
keys: | ||
- v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} | ||
- v1-dependencies-{{ arch }} | ||
|
||
step-save-cache: &step-save-cache | ||
save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }} | ||
|
||
step-install-os-dependencies: &step-install-os-dependencies | ||
run: | ||
name: Install OS Dependencies | ||
command: | | ||
case "$(uname)" in | ||
Linux) | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends -y wine64 wine32 wine | ||
;; | ||
Darwin) | ||
brew install --cask xquartz | ||
# TODO: use first-party wine-stable when winehq generates installers again | ||
# See: https://bugs.winehq.org/show_bug.cgi?id=49167 | ||
brew tap gcenx/wine | ||
brew install --cask --no-quarantine gcenx-wine-stable | ||
;; | ||
esac | ||
steps-linux-win: &steps-linux-win | ||
steps: | ||
- *step-env | ||
- *step-install-os-dependencies | ||
- checkout | ||
- *step-restore-cache | ||
- run: yarn | ||
- *step-save-cache | ||
- run: yarn test | ||
|
||
steps-mac: &steps-mac | ||
steps: | ||
- *step-env | ||
- *step-restore-brew-cache | ||
- *step-install-os-dependencies | ||
- *step-save-brew-cache | ||
- checkout | ||
- *step-restore-cache | ||
- run: yarn | ||
- *step-save-cache | ||
- run: yarn test | ||
|
||
version: 2.1 | ||
|
||
orbs: | ||
win: circleci/[email protected] | ||
jobs: | ||
test-linux-10: | ||
docker: | ||
- image: circleci/node:10 | ||
<<: *steps-linux-win | ||
test-linux-12: | ||
docker: | ||
- image: circleci/node:12 | ||
<<: *steps-linux-win | ||
test-linux-14: | ||
docker: | ||
- image: circleci/node:14 | ||
<<: *steps-linux-win | ||
test-mac: | ||
macos: | ||
xcode: "10.2.0" | ||
<<: *steps-mac | ||
test-windows: | ||
executor: | ||
name: win/vs2019 | ||
shell: bash.exe | ||
<<: *steps-linux-win | ||
cfa: continuousauth/[email protected] | ||
node: electronjs/[email protected] | ||
|
||
release: | ||
docker: | ||
- image: circleci/node:14.15.1 | ||
jobs: | ||
test: | ||
environment: | ||
# prevent Wine popup dialogs about installing additional packages | ||
WINEDLLOVERRIDES: mscoree,mshtml= | ||
WINEDEBUG: -all | ||
executor: <<parameters.executor>> | ||
parameters: | ||
executor: | ||
description: The executor to use for the job. | ||
type: string | ||
node-version: | ||
description: Specify the Node.js version to install. | ||
type: string | ||
steps: | ||
- checkout | ||
- *step-restore-cache | ||
- run: yarn | ||
- run: npx semantic-release | ||
- node/test: | ||
checkout-steps: | ||
- when: | ||
condition: | ||
equal: [ node/macos, << parameters.executor >> ] | ||
steps: | ||
- restore_cache: | ||
name: Restoring Homebrew cache | ||
paths: | ||
- /usr/local/Homebrew | ||
keys: | ||
- v1-brew-cache-{{ arch }} | ||
- run: | ||
name: Install OS Dependencies | ||
command: | | ||
case "$(uname)" in | ||
Linux) | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get update | ||
sudo apt-get install --no-install-recommends -y wine64 wine32 wine | ||
;; | ||
Darwin) | ||
brew install --cask xquartz | ||
brew tap homebrew/cask-versions | ||
brew install --cask --no-quarantine wine-stable | ||
;; | ||
esac | ||
- when: | ||
condition: | ||
equal: [ node/macos, << parameters.executor >> ] | ||
steps: | ||
- save_cache: | ||
name: Persisting Homebrew cache | ||
paths: | ||
- /usr/local/Homebrew | ||
key: v1-brew-cache-{{ arch }} | ||
- checkout | ||
node-version: << parameters.node-version >> | ||
|
||
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-10 | ||
- test-linux-12 | ||
- test-linux-14 | ||
- test-mac | ||
- test-windows | ||
- release: | ||
- test: | ||
name: test-<< matrix.executor >>-<< matrix.node-version >> | ||
matrix: | ||
alias: test | ||
parameters: | ||
executor: | ||
- node/linux | ||
- node/macos | ||
- node/windows | ||
node-version: | ||
- 20.2.0 | ||
- 18.14.0 | ||
- 16.19.0 | ||
- 14.19.0 | ||
- 12.22.12 | ||
- 10.24.1 | ||
- cfa/release: | ||
requires: | ||
- test-linux-10 | ||
- test-linux-12 | ||
- test-linux-14 | ||
- test-mac | ||
- test-windows | ||
- test | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
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 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
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.