gha: use paths instead of paths-ignore (#41)

* gha: use paths instead of paths-ignore
* docs: update from 3 sec to 4 sec
* ci: update husky post-commit hook
This commit is contained in:
Shohei Ueda 2019-09-22 15:45:20 +09:00 committed by GitHub
parent d7d48e3009
commit 71663ea875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View File

@ -2,12 +2,13 @@ name: 'Test'
on:
push:
paths-ignore:
- 'LICENSE'
- 'README.md'
- 'images'
- '.gitignore'
- '.vscode'
paths:
- '**'
- '!LICENSE'
- '!README.md'
- '!images'
- '!.gitignore'
- '!.vscode'
jobs:
test:

View File

@ -13,7 +13,7 @@
We can run Hugo on a virtual machine of GitHub Actions by this Hugo action. Hugo extended version and Hugo Modules are supported.
From `v2.0.0`, this Hugo action migrated to a JavaScript (TypeScript) action. We no longer build or pull a Hugo docker image. Thanks to this change, we can complete this action less than **3 sec**. (A docker base action was taking about 1 min or more execution time to build or pull.)
From `v2.0.0`, this Hugo action migrated to a JavaScript (TypeScript) action. We no longer build or pull a Hugo docker image. Thanks to this change, we can complete this action less than **4 sec**. (A docker base action was taking about 1 min or more execution time to build or pull.)
| OS (runs-on) | ubuntu-18.04 | macOS-10.14 | windows-2019 |
|---|:---:|:---:|:---:|

View File

@ -16,7 +16,7 @@
"skipCI": true,
"hooks": {
"pre-commit": "lint-staged",
"post-commit": "npm run tsc && npm run build && git add ./lib/**/*.js ./node_modules && git commit -m \"deps: Husky commit correct node modules\""
"post-commit": "npm run tsc && npm run build && echo 'Do not forget to Commit and Push ./lib and ./node_modules'"
}
},
"lint-staged": {