Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use cfa orb #1060

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 10 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ steps-test: &steps-test
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
nvm install 18
nvm alias default 18
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
nvm install 18.13.0
nvm use 18.13.0
;;
esac
- run: yarn install --frozen-lockfile --ignore-engines
- run: yarn install --frozen-lockfile
- save_cache:
paths:
- node_modules
Expand All @@ -52,15 +52,11 @@ steps-test: &steps-test
DEBUG: electron-rebuild
- run: yarn run codecov


version: 2.1
orbs:
win: circleci/windows@1.0.0
win: circleci/windows@5.0.0
cfa: continuousauth/npm@1.0.2
jobs:
test-linux-12:
docker:
- image: cimg/node:12.22
<<: *steps-test
test-linux-14:
docker:
- image: cimg/node:14.20
Expand All @@ -71,40 +67,27 @@ jobs:
<<: *steps-test
test-mac:
macos:
xcode: "13.3.0"
xcode: '13.3.0'
<<: *steps-test
test-windows:
executor:
name: win/vs2019
name: win/server-2019
shell: bash.exe
environment:
GYP_MSVS_VERSION: '2019'
<<: *steps-test

release:
docker:
- image: cimg/node:14.17
steps:
- checkout
- *step-restore-cache
- run: yarn install --frozen-lockfile --ignore-engines
- run: npx @continuous-auth/circleci-oidc-github-auth@1.0.4
- run: npx semantic-release@17.4.5

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:
- cfa/release:
requires:
- test-linux-16
- test-linux-12
- test-linux-14
- test-mac
- test-windows
Expand Down