diff --git a/.circleci/config.yml b/.circleci/config.yml index 58fa03a9..89dccec5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 @@ -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