2222
2323 steps :
2424 - name : " Checkout"
25- uses : actions/checkout@v5
25+ uses : actions/checkout@v6
26+
27+ - name : " yamllint"
28+ if : ${{ !cancelled() }}
29+ env :
30+ CONFIG : .github/yamllint.yaml
31+ run : |
32+ echo "::group::List Files"
33+ yamllint -c "${{ env.CONFIG }}" --list-files .
34+ echo "::endgroup::"
35+ yamllint -c "${{ env.CONFIG }}" .
36+
37+ - name : " actionlint"
38+ if : ${{ !cancelled() }}
39+ uses : cssnr/actionlint-action@v1
40+ with :
41+ shellcheck_opts : -e SC2129
42+
43+ - name : " hadolint"
44+ if : ${{ !cancelled() }}
45+ uses : hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
46+ with :
47+ dockerfile : Dockerfile
48+ ignore : " DL3018"
49+
50+ - name : " ShellCheck"
51+ if : ${{ !cancelled() }}
52+ uses : ludeeus/action-shellcheck@master
53+ env :
54+ SHELLCHECK_OPTS : -x
55+
56+ # - name: "ESLint Annotate"
57+ # if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
58+ # continue-on-error: true
59+ # uses: ataylorme/eslint-annotate-action@v3
60+
61+ npm-lint :
62+ name : " NPM Lint"
63+ runs-on : ubuntu-latest
64+ timeout-minutes : 5
65+
66+ permissions :
67+ pull-requests : write
68+ checks : write
69+
70+ steps :
71+ - name : " Checkout"
72+ uses : actions/checkout@v6
2673
2774 - name : " Setup Node"
2875 uses : actions/setup-node@v6
@@ -34,52 +81,13 @@ jobs:
3481 run : |
3582 npm ci
3683
37- - name : " ESLint "
84+ - name : " eslint "
3885 id : eslint
3986 if : ${{ !cancelled() }}
4087 run : |
41- #npm run lint:report
4288 npm run lint
4389
44- - name : " Prettier "
90+ - name : " prettier "
4591 if : ${{ !cancelled() }}
4692 run : |
4793 npm run prettier:check
48-
49- - name : " Yamllint"
50- if : ${{ !cancelled() }}
51- env :
52- CONFIG : " {extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
53- run : |
54- echo "::group::List Files"
55- yamllint -d '${{ env.CONFIG }}' --list-files .
56- echo "::endgroup::"
57- yamllint -d '${{ env.CONFIG }}' .
58-
59- - name : " Actionlint"
60- if : ${{ !cancelled() }}
61- run : |
62- echo "::group::Download"
63- loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
64- echo "loc: ${loc}"
65- tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
66- echo "tag: ${tag}"
67- url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
68- echo "url: ${url}"
69- curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
70- file "${RUNNER_TEMP}/actionlint"
71- "${RUNNER_TEMP}/actionlint" --version
72- echo "::endgroup::"
73- "${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
74-
75- - name : " Hadolint"
76- if : ${{ !cancelled() }}
77- uses : hadolint/hadolint-action@v3.3.0
78- with :
79- dockerfile : Dockerfile
80- ignore : " DL3018"
81-
82- # - name: "ESLint Annotate"
83- # if: ${{ !cancelled() && steps.eslint.outcome != 'success' }}
84- # continue-on-error: true
85- # uses: ataylorme/eslint-annotate-action@v3
0 commit comments