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:
parent
d7d48e3009
commit
71663ea875
|
@ -2,12 +2,13 @@ name: 'Test'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths:
|
||||||
- 'LICENSE'
|
- '**'
|
||||||
- 'README.md'
|
- '!LICENSE'
|
||||||
- 'images'
|
- '!README.md'
|
||||||
- '.gitignore'
|
- '!images'
|
||||||
- '.vscode'
|
- '!.gitignore'
|
||||||
|
- '!.vscode'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -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.
|
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 |
|
| OS (runs-on) | ubuntu-18.04 | macOS-10.14 | windows-2019 |
|
||||||
|---|:---:|:---:|:---:|
|
|---|:---:|:---:|:---:|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"skipCI": true,
|
"skipCI": true,
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "lint-staged",
|
"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": {
|
"lint-staged": {
|
||||||
|
|
Loading…
Reference in New Issue