File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : YAML lint
3+
4+ on : # yamllint disable-line rule:truthy
5+ push :
6+ branches : ["main", "develop", "feature/*"]
7+ pull_request :
8+ branches : ["main"]
9+
10+ jobs :
11+ lint :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
16+
17+ - name : Install yamllint
18+ run : pip install yamllint
19+
20+ - name : Lint YAML files
21+ run : >
22+ yamllint --strict .
23+ && echo '✔ Your code looks good.'
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ COPY ./package.json ${WORKDIR}/package.json
6161COPY ./package-lock.json ${WORKDIR}/package-lock.json
6262COPY ./Makefile ${WORKDIR}/
6363
64- RUN npm ci --verbose
64+ RUN npm ci --verbose --ignore-scripts
6565RUN ls -alh
6666
6767# CMD []
@@ -77,7 +77,7 @@ COPY ./package.json ${WORKDIR}/package.json
7777COPY ./package-lock.json ${WORKDIR}/package-lock.json
7878COPY ./Makefile ${WORKDIR}/
7979
80- RUN rm -vfr node_modules && npm ci --verbose --omit=dev
80+ RUN rm -vfr node_modules && npm ci --verbose --omit=dev --ignore-scripts
8181RUN npm run build
8282
8383CMD ["ls" , "-alh" ]
Original file line number Diff line number Diff line change 1515 "style:format" : " npx --yes prettier --write 'src/**/*.js'" ,
1616 "style:check" : " npx --yes prettier --check 'src/**/*.js'" ,
1717 "test" : " npm run jest:ci" ,
18- "test:all" : " npm run lint && npm run jest && echo 'Done.'" ,
18+ "test:all" : " npm run lint && npm run test && echo 'Done.'" ,
1919 "test:watch" : " npx --yes concurrently -k -s first --names \" LINT,TEST\" -p \" [{name}]\" \" npm run lint:watch\" \" npm run jest:watch\" " ,
2020 "update-all" : " npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"
2121 },
You can’t perform that action at this time.
0 commit comments