From 0696f583eea0eae5543d9996ec7d27fc9beba266 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Mon, 26 Jul 2021 09:23:54 +0900 Subject: [PATCH] Use node-actionlint (#11268) --- .github/workflows/lint.yml | 5 +---- package.json | 2 ++ yarn.lock | 11 ++++++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 13da5fe22..0cf5cbfde 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -42,10 +42,7 @@ jobs: run: yarn lint:changelog - name: Lint workflow files - run: | - bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) - ./actionlint -color - shell: bash + run: yarn lint:actionlint - name: Check Lock File Changes run: yarn && echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint." diff --git a/package.json b/package.json index 6d5d16d9a..a546168c5 100644 --- a/package.json +++ b/package.json @@ -120,6 +120,7 @@ "jest-snapshot-serializer-ansi": "1.0.0", "jest-snapshot-serializer-raw": "1.2.0", "jest-watch-typeahead": "0.6.4", + "node-actionlint": "1.0.2", "npm-run-all": "4.1.5", "path-browserify": "1.0.1", "prettier": "2.3.2", @@ -153,6 +154,7 @@ "lint:dist": "eslint --no-eslintrc --no-ignore --no-inline-config --env=es6,browser --parser-options=ecmaVersion:2019 \"dist/!(bin-prettier|index|third-party).js\"", "lint:spellcheck": "cspell", "lint:deps": "node ./scripts/check-deps.mjs", + "lint:actionlint": "node-actionlint", "fix": "run-s fix:eslint fix:prettier", "fix:eslint": "yarn lint:eslint --fix", "fix:prettier": "yarn lint:prettier --write", diff --git a/yarn.lock b/yarn.lock index 641445182..48ff27dc2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3266,7 +3266,7 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-glob@3.2.7, fast-glob@^3.1.1: +fast-glob@3.2.7, fast-glob@^3.1.1, fast-glob@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1" integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q== @@ -4945,6 +4945,15 @@ nice-try@^1.0.4: resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== +node-actionlint@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/node-actionlint/-/node-actionlint-1.0.2.tgz#a7f666fe6a85e116a84ec42f2f08e3b17badac52" + integrity sha512-76U5CVrfHkSFYHqWW/0CCaGkNbzRzgDb6j854bhQnOAgOZsihrYcCLnXCe1jGS24exg3OtyrqoEveoEaIJIAzA== + dependencies: + "@babel/code-frame" "^7.14.5" + chalk "^4.1.1" + fast-glob "^3.2.7" + node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"