ci: use electronjs/node orb (#77)
* ci: use electronjs/node orb * ci: bump orb version * ci: expand test matrix * ci: update config * ci: bump orb version
This commit is contained in:
@@ -1,35 +1,31 @@
|
|||||||
steps-test: &steps-test
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
|
|
||||||
- v1-dependencies-{{ arch }}
|
|
||||||
- run: yarn --frozen-lockfile
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
key: v1-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
|
|
||||||
- run: yarn build
|
|
||||||
- run: yarn test
|
|
||||||
|
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
orbs:
|
orbs:
|
||||||
cfa: continuousauth/npm@1.0.2
|
cfa: continuousauth/npm@1.0.2
|
||||||
|
node: electronjs/node@1.4.1
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
macos:
|
|
||||||
xcode: "13.4.1"
|
|
||||||
resource_class: macos.x86.medium.gen2
|
|
||||||
<<: *steps-test
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
|
||||||
test_and_release:
|
test_and_release:
|
||||||
|
# Run the test jobs first, then the release only when all the test jobs are successful
|
||||||
jobs:
|
jobs:
|
||||||
- test
|
- node/test:
|
||||||
|
executor: node/macos
|
||||||
|
name: test-mac-<< matrix.node-version >>
|
||||||
|
override-ci-command: yarn install --frozen-lockfile --ignore-engines
|
||||||
|
test-steps:
|
||||||
|
- run: yarn build
|
||||||
|
- run: yarn test
|
||||||
|
use-test-steps: true
|
||||||
|
matrix:
|
||||||
|
alias: test
|
||||||
|
parameters:
|
||||||
|
node-version:
|
||||||
|
- 20.5.0
|
||||||
|
- 18.17.0
|
||||||
|
- 16.20.1
|
||||||
|
- 14.21.3
|
||||||
|
- 12.22.12
|
||||||
|
- 10.24.1
|
||||||
- cfa/release:
|
- cfa/release:
|
||||||
requires:
|
requires:
|
||||||
- test
|
- test
|
||||||
@@ -38,4 +34,3 @@ workflows:
|
|||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
context: cfa-release
|
context: cfa-release
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user