Skip to content

Commit

Permalink
testing attach workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Aug 25, 2023
1 parent bd46682 commit c22179a
Showing 1 changed file with 41 additions and 24 deletions.
65 changes: 41 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
node: electronjs/node@1.1.0
node: electronjs/node@1.4.1

commands:
install:
Expand All @@ -10,6 +10,17 @@ commands:
- node/install:
node-version: '18.15.0'
- checkout
run-lint-and-build:
steps:
- run:
name: 'Lint codebase'
command: |
yarn lint
yarn syncpack
- run:
name: 'Build Electron Forge'
command: |
yarn build
run-fast-tests:
steps:
- node/install-packages
Expand All @@ -27,19 +38,24 @@ commands:
run-slow-tests:
steps:
- node/install-packages
- run:
name: 'Lint and build Forge'
command: |
yarn lint
yarn syncpack
yarn build
- attach_workspace:
at: .
- run:
name: 'Run slow tests'
command: |
echo $(circleci tests glob "packages/**/*_spec_slow.ts")
circleci tests glob "packages/**/*_spec_slow.ts" | circleci tests split --split-by=timings | xargs yarn test
jobs:
lint-and-build:
executor: node/linux
steps:
- install
- run-lint-and-build
- persist_to_workspace:
root: .
paths: packages/**/dist/*

fast-tests:
parameters:
executor:
Expand Down Expand Up @@ -136,23 +152,24 @@ jobs:
workflows:
tests:
jobs:
- lint-and-build
- fast-tests:
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:
matrix:
parameters:
executor: [node/windows, node/linux, node/macos]
arch: [x64, arm64]
exclude:
- executor: node/windows
arch: arm64
- executor: node/linux
arch: arm64
executor: [node/linux]
arch: [x64]
# exclude:
# - executor: node/windows
# arch: arm64
# - executor: node/linux
# arch: arm64
# - slow-tests:
# matrix:
# parameters:
# executor: [node/windows, node/linux, node/macos]
# arch: [x64, arm64]
# exclude:
# - executor: node/windows
# arch: arm64
# - executor: node/linux
# arch: arm64

0 comments on commit c22179a

Please sign in to comment.