mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 16:16:21 +00:00
Add style:check to ci workflow
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -15,4 +15,5 @@ jobs:
|
||||
key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
|
||||
restore-keys: ${{runner.os}}-npm-
|
||||
- run: npm ci
|
||||
- run: npm run style:check
|
||||
- run: npm test
|
||||
|
||||
@@ -15,7 +15,8 @@ bash> npm run build
|
||||
|
||||
It also has a pre-commit hook configured via
|
||||
[husky](https://www.npmjs.com/package/husky) that should run the build script
|
||||
before each commit.
|
||||
before each commit. Additionally, this hook formats code and lints it, as
|
||||
well.
|
||||
|
||||
## Releasing
|
||||
|
||||
|
||||
@@ -8,10 +8,12 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "ncc build src/main.ts",
|
||||
"format": "prettier --write src __test__",
|
||||
"format:check": "prettier --check src __test__",
|
||||
"format:write": "prettier --write src __test__",
|
||||
"lint": "eslint src __test__",
|
||||
"check": "run-p --continue-on-error --aggregate-output format lint",
|
||||
"pre-commit": "run-s check test build",
|
||||
"style:check": "run-p --continue-on-error --aggregate-output format:check lint",
|
||||
"style:write": "run-p --continue-on-error --aggregate-output format:write lint",
|
||||
"pre-commit": "run-s style:write test build",
|
||||
"test": "jest"
|
||||
},
|
||||
"husky": {
|
||||
|
||||
Reference in New Issue
Block a user