Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/template-oss/ci.yml')
-rw-r--r--scripts/template-oss/ci.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/template-oss/ci.yml b/scripts/template-oss/ci.yml
new file mode 100644
index 000000000..0ddffde96
--- /dev/null
+++ b/scripts/template-oss/ci.yml
@@ -0,0 +1,35 @@
+name: CI - cli
+
+on:
+ {{> onCi }}
+
+jobs:
+ lint:
+ {{> job jobName="Lint" }}
+ {{> stepLint jobRunFlags=pkgFlags }}
+
+ check-docs:
+ {{> job jobName="Check Docs" }}
+ - name: Make Docs
+ run: make freshdocs
+ - name: Check Git Status
+ run: node scripts/git-dirty.js
+
+ licenses:
+ {{> job jobName="Check Licenses" }}
+ - name: Check Licenses
+ run: {{rootNpmPath}} run licenses
+
+ smoke-tests:
+ {{> job jobName="Smoke Tests" }}
+ - name: Run Smoke Tests
+ run: {{rootNpmPath}} test -w smoke-tests --ignore-scripts
+ - name: Check Git Status
+ run: node scripts/git-dirty.js
+
+ test:
+ {{> jobMatrix jobName="Test" }}
+ {{> stepTest jobRunFlags=pkgFlags }}
+ - name: Check Git Status
+ if: matrix.platform.os != 'windows-latest'
+ run: node scripts/git-dirty.js