Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed Aug 6, 2021
1 parent 455e61a commit 82ae266
Showing 1 changed file with 27 additions and 54 deletions.
81 changes: 27 additions & 54 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,32 @@
---
version: 2
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v1-npm-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
- v1-npm-{{checksum ".circleci/config.yml"}}
- run:
name: Install dependencies
command: yarn
- run:
name: Run tests
command: yarn test
node-14:
<<: *test
docker:
- image: node:14
release:
<<: *test
steps:
- add_ssh_keys
- checkout
- restore_cache: *restore_cache
- run:
name: Install release dependencies
command: |
yarn global add @oclif/semantic-release@3 semantic-release@17
yarn --frozen-lockfile
- run:
name: Cut release
command: |
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
semantic-release -e @oclif/semantic-release
- save_cache:
key: v1-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
paths:
- ~/cli/node_modules
- /usr/local/share/.cache/yarn
- /usr/local/share/.config/yarn
version: 2.1

orbs:
release-management: salesforce/npm-release-management@4

workflows:
version: 2
"@oclif/test":
test-and-release:
jobs:
- node-latest
- node-14
- release:
context: org-global
filters:
branches: {only: master}
- release-management/test-package:
matrix:
parameters:
os:
- linux
# - windows
node_version:
- latest
- lts
- maintenance
exclude:
- os: windows
node_version: lts
- os: windows
node_version: maintenance
- release-management/release-package:
github-release: true
tag: core-v1
requires:
- node-latest
- node-14
- release-management/test-package
filters:
branches:
only: master

0 comments on commit 82ae266

Please sign in to comment.