Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #148 from technote-space/release/next-v4.1.0
Browse files Browse the repository at this point in the history
release: v4.1.1
  • Loading branch information
technote-space authored Apr 29, 2021
2 parents 159685a + 5c2bdea commit 50bac75
Show file tree
Hide file tree
Showing 5 changed files with 582 additions and 508 deletions.
2 changes: 2 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ env または actionsの出力 から差分を得ることができます。
- [Json形式で結果を取得する場合](#json%E5%BD%A2%E5%BC%8F%E3%81%A7%E7%B5%90%E6%9E%9C%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E5%A0%B4%E5%90%88)
- [Author](#author)

*generated with [TOC Generator](https://github.com/technote-space/toc-generator)*

</details>
<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ You can get the differences via env or action output.
- [To get the result in Json format](#to-get-the-result-in-json-format)
- [Author](#author)

*generated with [TOC Generator](https://github.com/technote-space/toc-generator)*

</details>
<!-- END doctoc generated TOC please keep comment here to allow auto update -->

Expand Down
49 changes: 49 additions & 0 deletions __tests__/process.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,25 @@ describe('setResult', () => {

stdoutCalledWith(mockStdout, [
'::group::Dump output',
'',
'::set-output name=diff::test1 test2 test4',
'"diff: test1 test2 test4"',
'',
'::set-output name=filtered_diff::test1 test2',
'"filtered_diff: test1 test2"',
'',
'::set-output name=matched_files::test4',
'"matched_files: test4"',
'',
'::set-output name=count::3',
'"count: 3"',
'',
'::set-output name=insertions::3',
'"insertions: 3"',
'',
'::set-output name=deletions::300',
'"deletions: 300"',
'',
'::set-output name=lines::303',
'"lines: 303"',
'::endgroup::',
Expand All @@ -157,18 +164,25 @@ describe('setResult', () => {

stdoutCalledWith(mockStdout, [
'::group::Dump output',
'',
'::set-output name=diff::test1 test2 test4',
'"diff: test1 test2 test4"',
'',
'::set-output name=filtered_diff::test1 test2',
'"filtered_diff: test1 test2"',
'',
'::set-output name=matched_files::test4',
'"matched_files: test4"',
'',
'::set-output name=count::3',
'"count: 3"',
'',
'::set-output name=insertions::3',
'"insertions: 3"',
'',
'::set-output name=deletions::300',
'"deletions: 300"',
'',
'::set-output name=lines::303',
'"lines: 303"',
'::endgroup::',
Expand Down Expand Up @@ -262,18 +276,25 @@ describe('execute', () => {
]),
'::endgroup::',
'::group::Dump output',
'',
'::set-output name=diff::\'package.json\' \'abc/package.json\' \'src/main.ts\'',
'"diff: \'package.json\' \'abc/package.json\' \'src/main.ts\'"',
'',
'::set-output name=filtered_diff::\'src/main.ts\'',
'"filtered_diff: \'src/main.ts\'"',
'',
'::set-output name=matched_files::\'package.json\' \'abc/package.json\'',
'"matched_files: \'package.json\' \'abc/package.json\'"',
'',
'::set-output name=count::3',
'"count: 3"',
'',
'::set-output name=insertions::25',
'"insertions: 25"',
'',
'::set-output name=deletions::4',
'"deletions: 4"',
'',
'::set-output name=lines::29',
'"lines: 29"',
'::endgroup::',
Expand Down Expand Up @@ -324,18 +345,25 @@ describe('execute', () => {
'[]',
'::endgroup::',
'::group::Dump output',
'',
'::set-output name=diff::',
'"diff: "',
'',
'::set-output name=filtered_diff::',
'"filtered_diff: "',
'',
'::set-output name=matched_files::',
'"matched_files: "',
'',
'::set-output name=count::0',
'"count: 0"',
'',
'::set-output name=insertions::0',
'"insertions: 0"',
'',
'::set-output name=deletions::0',
'"deletions: 0"',
'',
'::set-output name=lines::0',
'"lines: 0"',
'::endgroup::',
Expand All @@ -362,18 +390,25 @@ describe('execute', () => {
'[]',
'::endgroup::',
'::group::Dump output',
'',
'::set-output name=diff::',
'"diff: "',
'',
'::set-output name=filtered_diff::',
'"filtered_diff: "',
'',
'::set-output name=matched_files::',
'"matched_files: "',
'',
'::set-output name=count::0',
'"count: 0"',
'',
'::set-output name=insertions::0',
'"insertions: 0"',
'',
'::set-output name=deletions::0',
'"deletions: 0"',
'',
'::set-output name=lines::0',
'"lines: 0"',
'::endgroup::',
Expand Down Expand Up @@ -407,18 +442,25 @@ describe('execute', () => {
'[]',
'::endgroup::',
'::group::Dump output',
'',
'::set-output name=diff::1',
'"diff: 1"',
'',
'::set-output name=filtered_diff::2',
'"filtered_diff: 2"',
'',
'::set-output name=matched_files::3',
'"matched_files: 3"',
'',
'::set-output name=count::4',
'"count: 4"',
'',
'::set-output name=insertions::5',
'"insertions: 5"',
'',
'::set-output name=deletions::6',
'"deletions: 6"',
'',
'::set-output name=lines::7',
'"lines: 7"',
'::endgroup::',
Expand Down Expand Up @@ -458,18 +500,25 @@ describe('execute', () => {
'[]',
'::endgroup::',
'::group::Dump output',
'',
'::set-output name=diff::',
'"diff: "',
'',
'::set-output name=filtered_diff::',
'"filtered_diff: "',
'',
'::set-output name=matched_files::',
'"matched_files: "',
'',
'::set-output name=count::0',
'"count: 0"',
'',
'::set-output name=insertions::0',
'"insertions: 0"',
'',
'::set-output name=deletions::0',
'"deletions: 0"',
'',
'::set-output name=lines::0',
'"lines: 0"',
'::endgroup::',
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/get-diff-action",
"version": "4.1.0",
"version": "4.1.1",
"description": "GitHub actions to get git diff.",
"keywords": [
"github",
Expand Down Expand Up @@ -31,37 +31,37 @@
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
"release": "yarn release-ga --test",
"test": "yarn lint && yarn cover",
"update": "npx npm-check-updates -u && yarn install && yarn upgrade && yarn audit",
"update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit",
"postinstall": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/husky ] || husky install",
"prepublishOnly": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --disable",
"postpublish": "[ -n \"$CI\" ] || [ ! -f node_modules/.bin/pinst ] || pinst --enable"
},
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/core": "^1.2.7",
"@actions/github": "^4.0.0",
"@technote-space/filter-github-action": "^0.5.22",
"@technote-space/github-action-helper": "^5.2.4",
"@technote-space/github-action-log-helper": "^0.1.21",
"@technote-space/filter-github-action": "^0.5.24",
"@technote-space/github-action-helper": "^5.2.6",
"@technote-space/github-action-log-helper": "^0.1.24",
"multimatch": "^5.0.0"
},
"devDependencies": {
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@technote-space/github-action-test-helper": "^0.7.4",
"@technote-space/release-github-actions-cli": "^1.8.4",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.35",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"eslint": "^7.22.0",
"husky": "^5.1.3",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@technote-space/github-action-test-helper": "^0.7.9",
"@technote-space/release-github-actions-cli": "^1.8.5",
"@types/jest": "^26.0.23",
"@types/node": "^15.0.1",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"eslint": "^7.25.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"lint-staged": "^10.5.4",
"nock": "^13.0.11",
"pinst": "^2.1.6",
"ts-jest": "^26.5.3",
"typescript": "^4.2.3"
"ts-jest": "^26.5.5",
"typescript": "^4.2.4"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 50bac75

Please sign in to comment.