Skip to content

Commit 1a703da

Browse files
Merge pull request #197 from technote-space/release/v0.7.2
release/v0.7.2
2 parents 8e34750 + 00bd520 commit 1a703da

File tree

3 files changed

+46
-21
lines changed

3 files changed

+46
-21
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,31 @@ jobs:
1616
- uses: actions/checkout@v2
1717
with:
1818
fetch-depth: 3
19+
- uses: technote-space/get-diff-action@v1
20+
id: git-diff
21+
with:
22+
PREFIX_FILTER: |
23+
src/
24+
__tests__/
25+
SUFFIX_FILTER: .ts
1926
- name: Get Yarn Cache Directory
2027
id: yarn-cache
2128
run: echo "::set-output name=dir::$(yarn cache dir)"
29+
if: steps.git-diff.outputs.diff
2230
- name: Cache node dependencies
2331
uses: actions/cache@v1
2432
with:
2533
path: ${{ steps.yarn-cache.outputs.dir }}
2634
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2735
restore-keys: |
2836
${{ runner.os }}-yarn-
37+
if: steps.git-diff.outputs.diff
2938
- name: Install Package dependencies
3039
run: yarn install
40+
if: steps.git-diff.outputs.diff
3141
- name: Check code style
32-
run: yarn lint
42+
run: yarn eslint ${{ steps.git-diff.outputs.diff }}
43+
if: steps.git-diff.outputs.diff
3344
- uses: 8398a7/action-slack@v1
3445
with:
3546
type: failure
@@ -49,30 +60,42 @@ jobs:
4960
- uses: actions/checkout@v2
5061
with:
5162
fetch-depth: 3
63+
- uses: technote-space/get-diff-action@v1
64+
id: git-diff
65+
with:
66+
PREFIX_FILTER: |
67+
src/
68+
__tests__/
69+
SUFFIX_FILTER: .ts
5270
- name: Setup node
5371
uses: actions/setup-node@v1
5472
with:
5573
node-version: ${{ matrix.node }}
74+
if: steps.git-diff.outputs.diff || github.event_name == 'push'
5675
- name: Get Yarn Cache Directory
5776
id: yarn-cache
5877
run: echo "::set-output name=dir::$(yarn cache dir)"
78+
if: steps.git-diff.outputs.diff || github.event_name == 'push'
5979
- name: Cache node dependencies
6080
uses: actions/cache@v1
6181
with:
6282
path: ${{ steps.yarn-cache.outputs.dir }}
6383
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
6484
restore-keys: |
6585
${{ runner.os }}-yarn-
86+
if: steps.git-diff.outputs.diff || github.event_name == 'push'
6687
- name: Install Package dependencies
6788
run: yarn install
89+
if: steps.git-diff.outputs.diff || github.event_name == 'push'
6890
- name: Run tests
6991
run: yarn cover
92+
if: steps.git-diff.outputs.diff || github.event_name == 'push'
7093
- name: Codecov
7194
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
7295
env:
7396
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7497
COVERAGE_FILE: ./coverage/lcov.info
75-
if: matrix.node == '12'
98+
if: matrix.node == '12' && (steps.git-diff.outputs.diff || github.event_name == 'push')
7699
- uses: 8398a7/action-slack@v1
77100
with:
78101
type: failure

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "Helper to filter GitHub Action.",
55
"author": "Technote <[email protected]> (https://technote.space)",
66
"license": "MIT",
@@ -38,7 +38,7 @@
3838
"jest-circus": "^24.9.0",
3939
"nock": "^11.7.2",
4040
"ts-jest": "^24.3.0",
41-
"typescript": "^3.7.4"
41+
"typescript": "^3.7.5"
4242
},
4343
"publishConfig": {
4444
"access": "public"

yarn.lock

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ error-ex@^1.3.1:
11921192
dependencies:
11931193
is-arrayish "^0.2.1"
11941194

1195-
es-abstract@^1.17.0-next.1:
1195+
es-abstract@^1.17.0-next.1, es-abstract@^1.17.2:
11961196
version "1.17.2"
11971197
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.2.tgz#965b10af56597b631da15872c17a405e86c1fd46"
11981198
integrity sha512-YoKuru3Lyoy7yVTBSH2j7UxTqe/je3dWAruC0sHvZX1GNd5zX8SSLvQqEgO9b3Ex8IW+goFI9arEEsFIbulhOw==
@@ -2579,9 +2579,9 @@ kind-of@^5.0.0:
25792579
integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==
25802580

25812581
kind-of@^6.0.0, kind-of@^6.0.2:
2582-
version "6.0.2"
2583-
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
2584-
integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==
2582+
version "6.0.3"
2583+
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
2584+
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
25852585

25862586
kleur@^3.0.3:
25872587
version "3.0.3"
@@ -3013,7 +3013,7 @@ object.assign@^4.1.0:
30133013
has-symbols "^1.0.0"
30143014
object-keys "^1.0.11"
30153015

3016-
object.getownpropertydescriptors@^2.0.3:
3016+
object.getownpropertydescriptors@^2.1.0:
30173017
version "2.1.0"
30183018
resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649"
30193019
integrity sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg==
@@ -4046,10 +4046,10 @@ type-fest@^0.8.1:
40464046
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
40474047
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
40484048

4049-
typescript@^3.7.4:
4050-
version "3.7.4"
4051-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.4.tgz#1743a5ec5fef6a1fa9f3e4708e33c81c73876c19"
4052-
integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw==
4049+
typescript@^3.7.5:
4050+
version "3.7.5"
4051+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
4052+
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==
40534053

40544054
union-value@^1.0.0:
40554055
version "1.0.1"
@@ -4099,17 +4099,19 @@ util-deprecate@~1.0.1:
40994099
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
41004100

41014101
util.promisify@^1.0.0:
4102-
version "1.0.0"
4103-
resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030"
4104-
integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==
4102+
version "1.0.1"
4103+
resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee"
4104+
integrity sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA==
41054105
dependencies:
4106-
define-properties "^1.1.2"
4107-
object.getownpropertydescriptors "^2.0.3"
4106+
define-properties "^1.1.3"
4107+
es-abstract "^1.17.2"
4108+
has-symbols "^1.0.1"
4109+
object.getownpropertydescriptors "^2.1.0"
41084110

41094111
uuid@^3.3.2:
4110-
version "3.3.3"
4111-
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
4112-
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==
4112+
version "3.4.0"
4113+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
4114+
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
41134115

41144116
v8-compile-cache@^2.0.3:
41154117
version "2.1.0"

0 commit comments

Comments
 (0)