|
@@ -0,0 +1,17 @@
|
|
|
+image: node:16.14.2-alpine
|
|
|
+
|
|
|
+stages: # List of stages for jobs, and their order of execution
|
|
|
+ - lint
|
|
|
+
|
|
|
+install: # This job runs in the build stage, which runs first.
|
|
|
+ stage: lint
|
|
|
+ script:
|
|
|
+ - cp ./ci-lint/package.json ./package.json
|
|
|
+ - echo "Use yarn management node_modules"
|
|
|
+ -
|
|
|
+ hash yarn 2>/dev/null || {
|
|
|
+ echo >&2 "Not has yarn, wait install";
|
|
|
+ npm install yarn --prefer-offline --no-audit -g;
|
|
|
+ }
|
|
|
+ - yarn install --pure-lockfile --prefer-offline
|
|
|
+ - yarn run lint
|