Skip to content

Commit

Permalink
chore: update circleci config (#145)
Browse files Browse the repository at this point in the history
* chore: update circleci config

* chore: update .eslintrc

* chore: remove github action
  • Loading branch information
mdonnalley authored Apr 15, 2021
1 parent 50c1789 commit ea5b6b7
Show file tree
Hide file tree
Showing 8 changed files with 1,094 additions and 1,467 deletions.
60 changes: 27 additions & 33 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
---
version: 2
jobs:
node-latest: &test
docker:
- image: node:latest
working_directory: ~/cli
environment:
NYC: "yarn exec nyc -- --nycrc-path node_modules/@oclif/nyc-config/.nycrc"
steps:
- checkout
- restore_cache: &restore_cache
keys:
- v1-yarn-{{checksum ".circleci/config.yml"}}-{{ checksum "yarn.lock"}}
- v1-yarn-{{checksum ".circleci/config.yml"}}
- run: yarn
- run: yarn add -D nyc@13 @oclif/nyc-config@1
- run: |
$NYC yarn test
$NYC report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
node-12:
<<: *test
docker:
- image: node:12
node-10:
<<: *test
docker:
- image: node:10
version: 2.1

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

workflows:
version: 2
"@oclif/core":
test-and-release:
jobs:
- node-latest
- node-12
- node-10
- 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
requires:
- release-management/test-package
filters:
branches:
only: master
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"oclif-typescript"
],
"rules": {
"unicorn/no-abusive-eslint-disable": "off"
"unicorn/no-abusive-eslint-disable": "off",
"@typescript-eslint/no-empty-function": "off"
}
}
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname $0)/_/husky.sh"

yarn run commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"wrap-ansi": "^7.0.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^12.1.1",
"@oclif/dev-cli": "^1.21.0",
"@oclif/plugin-help": "^3.2.0",
"@oclif/plugin-legacy": "^1.1.3",
Expand All @@ -44,12 +45,13 @@
"@types/strip-ansi": "^5.2.1",
"@types/wrap-ansi": "^3.0.0",
"chai": "^4.2.0",
"conventional-changelog-cli": "^2.0.21",
"commitlint": "^12.1.1",
"eslint": "^7.3.1",
"eslint-config-oclif": "^3.1.0",
"eslint-config-oclif-typescript": "^0.2.0",
"fancy-test": "^1.4.3",
"globby": "^11.0.1",
"husky": "5",
"lodash": "^4.17.11",
"mocha": "^8.1.3",
"nock": "^13.0.0",
Expand Down Expand Up @@ -81,13 +83,16 @@
"@oclif/plugin-plugins"
]
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "rm -rf lib && tsc",
"commitlint": "commitlint",
"lint": "eslint . --ext .ts --config .eslintrc",
"posttest": "yarn lint",
"prepack": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\" --no-color",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"pretest": "yarn build --noEmit && tsc -p test --noEmit"
},
"types": "lib/index.d.ts"
Expand Down
Loading

0 comments on commit ea5b6b7

Please sign in to comment.