electron-packager/.circleci/config.yml

67 строки
1.9 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

version: 2.1
2023-08-14 22:52:45 +03:00
orbs:
2023-08-14 22:52:45 +03:00
node: electronjs/node@1.2.0
jobs:
2023-08-14 22:52:45 +03:00
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:
- node/test:
post-node-js-install-steps:
- run: test/ci/before_install.sh
test-steps:
- restore_cache:
name: Restoring Electron cache
paths:
- $HOME/.cache/electron
keys:
- v1-electron-cache-{{ arch }}
- run:
name: Download Electron binaries
command: |
node test/ci/_before_script.js
- save_cache:
name: Persisting Electron cache
paths:
- $HOME/.cache/electron
key: v1-electron-cache-{{ arch }}
- run: yarn run lint
- run: yarn run tsd
- run: yarn run coverage
- run: yarn run codecov
use-test-steps: true
node-version: << parameters.node-version >>
workflows:
2023-08-14 22:52:45 +03:00
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
2023-08-14 22:52:45 +03:00
- 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.4.0
2020-03-03 01:08:29 +03:00
filters:
branches: { ignore: gh-pages }
2023-08-14 22:52:45 +03:00