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
61
61
COPY ./package-lock.json ${WORKDIR}/package-lock.json
62
62
COPY ./Makefile ${WORKDIR}/
63
63
64
- RUN npm ci --verbose
64
+ RUN npm ci --verbose --ignore-scripts
65
65
RUN ls -alh
66
66
67
67
# CMD []
@@ -77,7 +77,7 @@ COPY ./package.json ${WORKDIR}/package.json
77
77
COPY ./package-lock.json ${WORKDIR}/package-lock.json
78
78
COPY ./Makefile ${WORKDIR}/
79
79
80
- RUN rm -vfr node_modules && npm ci --verbose --omit=dev
80
+ RUN rm -vfr node_modules && npm ci --verbose --omit=dev --ignore-scripts
81
81
RUN npm run build
82
82
83
83
CMD ["ls" , "-alh" ]
Original file line number Diff line number Diff line change 15
15
"style:format" : " npx --yes prettier --write 'src/**/*.js'" ,
16
16
"style:check" : " npx --yes prettier --check 'src/**/*.js'" ,
17
17
"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.'" ,
19
19
"test:watch" : " npx --yes concurrently -k -s first --names \" LINT,TEST\" -p \" [{name}]\" \" npm run lint:watch\" \" npm run jest:watch\" " ,
20
20
"update-all" : " npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"
21
21
},
You can’t perform that action at this time.
0 commit comments