Skip to content

Commit 1c95225

Browse files
Merge pull request #198 from technote-space/release/v0.7.3
release/v0.7.3
2 parents 1a703da + b5c151e commit 1c95225

File tree

3 files changed

+44
-47
lines changed

3 files changed

+44
-47
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@ jobs:
1717
with:
1818
fetch-depth: 3
1919
- uses: technote-space/get-diff-action@v1
20-
id: git-diff
2120
with:
2221
PREFIX_FILTER: |
2322
src/
2423
__tests__/
2524
SUFFIX_FILTER: .ts
25+
FILES: .eslintrc
2626
- name: Get Yarn Cache Directory
2727
id: yarn-cache
2828
run: echo "::set-output name=dir::$(yarn cache dir)"
29-
if: steps.git-diff.outputs.diff
29+
if: env.GIT_DIFF
3030
- name: Cache node dependencies
3131
uses: actions/cache@v1
3232
with:
3333
path: ${{ steps.yarn-cache.outputs.dir }}
3434
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3535
restore-keys: |
3636
${{ runner.os }}-yarn-
37-
if: steps.git-diff.outputs.diff
37+
if: env.GIT_DIFF
3838
- name: Install Package dependencies
3939
run: yarn install
40-
if: steps.git-diff.outputs.diff
40+
if: env.GIT_DIFF
4141
- name: Check code style
42-
run: yarn eslint ${{ steps.git-diff.outputs.diff }}
43-
if: steps.git-diff.outputs.diff
42+
run: yarn eslint ${{ env.GIT_DIFF }}
43+
if: env.GIT_DIFF
4444
- uses: 8398a7/action-slack@v1
4545
with:
4646
type: failure
@@ -61,41 +61,43 @@ jobs:
6161
with:
6262
fetch-depth: 3
6363
- uses: technote-space/get-diff-action@v1
64-
id: git-diff
6564
with:
6665
PREFIX_FILTER: |
6766
src/
6867
__tests__/
6968
SUFFIX_FILTER: .ts
69+
FILES: |
70+
yarn.lock
71+
jest.config.js
7072
- name: Setup node
7173
uses: actions/setup-node@v1
7274
with:
7375
node-version: ${{ matrix.node }}
74-
if: steps.git-diff.outputs.diff || github.event_name == 'push'
76+
if: env.GIT_DIFF || github.event_name == 'push'
7577
- name: Get Yarn Cache Directory
7678
id: yarn-cache
7779
run: echo "::set-output name=dir::$(yarn cache dir)"
78-
if: steps.git-diff.outputs.diff || github.event_name == 'push'
80+
if: env.GIT_DIFF || github.event_name == 'push'
7981
- name: Cache node dependencies
8082
uses: actions/cache@v1
8183
with:
8284
path: ${{ steps.yarn-cache.outputs.dir }}
8385
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
8486
restore-keys: |
8587
${{ runner.os }}-yarn-
86-
if: steps.git-diff.outputs.diff || github.event_name == 'push'
88+
if: env.GIT_DIFF || github.event_name == 'push'
8789
- name: Install Package dependencies
8890
run: yarn install
89-
if: steps.git-diff.outputs.diff || github.event_name == 'push'
91+
if: env.GIT_DIFF || github.event_name == 'push'
9092
- name: Run tests
9193
run: yarn cover
92-
if: steps.git-diff.outputs.diff || github.event_name == 'push'
94+
if: env.GIT_DIFF || github.event_name == 'push'
9395
- name: Codecov
9496
run: curl -s https://codecov.io/bash | bash -s -- -t $CODECOV_TOKEN -f $COVERAGE_FILE
9597
env:
9698
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9799
COVERAGE_FILE: ./coverage/lcov.info
98-
if: matrix.node == '12' && (steps.git-diff.outputs.diff || github.event_name == 'push')
100+
if: matrix.node == '12' && (env.GIT_DIFF || github.event_name == 'push')
99101
- uses: 8398a7/action-slack@v1
100102
with:
101103
type: failure

package.json

Lines changed: 5 additions & 5 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.2",
3+
"version": "0.7.3",
44
"description": "Helper to filter GitHub Action.",
55
"author": "Technote <[email protected]> (https://technote.space)",
66
"license": "MIT",
@@ -28,9 +28,9 @@
2828
"sprintf-js": "^1.1.2"
2929
},
3030
"devDependencies": {
31-
"@technote-space/github-action-test-helper": "^0.0.28",
31+
"@technote-space/github-action-test-helper": "^0.1.1",
3232
"@types/jest": "^24.9.0",
33-
"@types/node": "^13.1.7",
33+
"@types/node": "^13.1.8",
3434
"@typescript-eslint/eslint-plugin": "^2.16.0",
3535
"@typescript-eslint/parser": "^2.16.0",
3636
"eslint": "^6.8.0",
@@ -46,8 +46,8 @@
4646
"scripts": {
4747
"build": "tsc",
4848
"test": "yarn lint && yarn cover",
49-
"lint": "eslint src/**/**/*.ts __tests__/**/**/*.ts",
50-
"lint:fix": "eslint --fix src/**/**/*.ts __tests__/**/**/*.ts",
49+
"lint": "eslint 'src/**/*.ts' '__tests__/**/*.ts'",
50+
"lint:fix": "eslint --fix 'src/**/*.ts' '__tests__/**/*.ts'",
5151
"cover": "jest --coverage",
5252
"update": "ncu -u && yarn install && yarn upgrade && yarn audit"
5353
}

yarn.lock

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@
342342
universal-user-agent "^4.0.0"
343343

344344
"@octokit/rest@^16.15.0":
345-
version "16.36.0"
346-
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.36.0.tgz#99892c57ba632c2a7b21845584004387b56c2cb7"
347-
integrity sha512-zoZj7Ya4vWBK4fjTwK2Cnmu7XBB1p9ygSvTk2TthN6DVJXM4hQZQoAiknWFLJWSTix4dnA3vuHtjPZbExYoCZA==
345+
version "16.37.0"
346+
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.37.0.tgz#e08501c471199cb4942587f2425a7990b34a49eb"
347+
integrity sha512-qLPK9FOCK4iVpn6ghknNuv/gDDxXQG6+JBQvoCwWjQESyis9uemakjzN36nvvp8SCny7JuzHI2RV8ChbV5mYdQ==
348348
dependencies:
349349
"@octokit/request" "^5.2.0"
350350
"@octokit/request-error" "^1.0.2"
@@ -366,10 +366,10 @@
366366
dependencies:
367367
"@types/node" ">= 8"
368368

369-
"@technote-space/github-action-test-helper@^0.0.28":
370-
version "0.0.28"
371-
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.0.28.tgz#03c87c6780e9a716933903edda1d77bc6e5666cb"
372-
integrity sha512-vChFnRmzo4D3KQ/Z1LGf1UL+j0qukPknEI2+GOSXBgkmANJbgwg6YPVgMpFixkfHNili2y9bNYqrJ9kh+7kVtQ==
369+
"@technote-space/github-action-test-helper@^0.1.1":
370+
version "0.1.1"
371+
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.1.1.tgz#6480b5516cc7e9291685226caa31f58671e3e11f"
372+
integrity sha512-K6ebxvzskzjTZeK75Ymbg0F0CyZRLMAewjHiiWguyn1HfIKGllJxLhS0TSApJo3092+VsDSiPCYTeL+nQTMEVg==
373373
dependencies:
374374
"@actions/github" "^2.0.1"
375375
js-yaml "^3.13.1"
@@ -444,10 +444,10 @@
444444
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339"
445445
integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==
446446

447-
"@types/node@>= 8", "@types/node@^13.1.7":
448-
version "13.1.7"
449-
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.7.tgz#db51d28b8dfacfe4fb2d0da88f5eb0a2eca00675"
450-
integrity sha512-HU0q9GXazqiKwviVxg9SI/+t/nAsGkvLDkIdxz+ObejG2nX6Si00TeLqHMoS+a/1tjH7a8YpKVQwtgHuMQsldg==
447+
"@types/node@>= 8", "@types/node@^13.1.8":
448+
version "13.1.8"
449+
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.8.tgz#1d590429fe8187a02707720ecf38a6fe46ce294b"
450+
integrity sha512-6XzyyNM9EKQW4HKuzbo/CkOIjn/evtCmsU+MUM1xDfJ+3/rNjBttM1NgN7AOQvN6tP1Sl1D1PIKMreTArnxM9A==
451451

452452
"@types/stack-utils@^1.0.1":
453453
version "1.0.1"
@@ -553,11 +553,11 @@ acorn@^7.1.0:
553553
integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==
554554

555555
ajv@^6.10.0, ajv@^6.10.2, ajv@^6.5.5:
556-
version "6.10.2"
557-
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52"
558-
integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==
556+
version "6.11.0"
557+
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.11.0.tgz#c3607cbc8ae392d8a5a536f25b21f8e5f3f87fe9"
558+
integrity sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==
559559
dependencies:
560-
fast-deep-equal "^2.0.1"
560+
fast-deep-equal "^3.1.1"
561561
fast-json-stable-stringify "^2.0.0"
562562
json-schema-traverse "^0.4.1"
563563
uri-js "^4.2.2"
@@ -1224,11 +1224,11 @@ escape-string-regexp@^1.0.5:
12241224
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
12251225

12261226
escodegen@^1.9.1:
1227-
version "1.12.1"
1228-
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.12.1.tgz#08770602a74ac34c7a90ca9229e7d51e379abc76"
1229-
integrity sha512-Q8t2YZ+0e0pc7NRVj3B4tSQ9rim1oi4Fh46k2xhJ2qOiEwhQfdjyEQddWdj7ZFaKmU+5104vn1qrcjEPWq+bgQ==
1227+
version "1.13.0"
1228+
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.13.0.tgz#c7adf9bd3f3cc675bb752f202f79a720189cab29"
1229+
integrity sha512-eYk2dCkxR07DsHA/X2hRBj0CFAZeri/LyDMc0C8JT1Hqi6JnVpMhJ7XFITbb0+yZS3lVkaPL2oCkZ3AVmeVbMw==
12301230
dependencies:
1231-
esprima "^3.1.3"
1231+
esprima "^4.0.1"
12321232
estraverse "^4.2.0"
12331233
esutils "^2.0.2"
12341234
optionator "^0.8.1"
@@ -1307,12 +1307,7 @@ espree@^6.1.2:
13071307
acorn-jsx "^5.1.0"
13081308
eslint-visitor-keys "^1.1.0"
13091309

1310-
esprima@^3.1.3:
1311-
version "3.1.3"
1312-
resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633"
1313-
integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=
1314-
1315-
esprima@^4.0.0:
1310+
esprima@^4.0.0, esprima@^4.0.1:
13161311
version "4.0.1"
13171312
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
13181313
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
@@ -1442,10 +1437,10 @@ extsprintf@^1.2.0:
14421437
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
14431438
integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=
14441439

1445-
fast-deep-equal@^2.0.1:
1446-
version "2.0.1"
1447-
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"
1448-
integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=
1440+
fast-deep-equal@^3.1.1:
1441+
version "3.1.1"
1442+
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4"
1443+
integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==
14491444

14501445
[email protected], fast-json-stable-stringify@^2.0.0:
14511446
version "2.1.0"

0 commit comments

Comments
 (0)