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:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-25 07:45:30 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-26 00:32:24 +0300
commit97b41528739460b2e9e72e09000aded412418cb2 (patch)
tree98236ceca0ff02dc8528f674d09d319a7cc871de /.github
parent59cf37962a2286e0f7d3bd37fa9c8bc3bac94218 (diff)
add smoke tests
Lightweight smoke test suite that runs common commands so that we can also have a holistic check during CI. PR-URL: https://github.com/npm/cli/pull/2959 Credit: @ruyadorno Close: #2959 Reviewed-by: @nlf
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 851b3fdcb..14f362b45 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -37,6 +37,48 @@ jobs:
- name: Run linting
run: node . run licenses
+ smoke-tests:
+ strategy:
+ fail-fast: false
+ matrix:
+ node-version: [10.x, 12.x, 14.x]
+ platform:
+ - os: ubuntu-latest
+ shell: bash
+ - os: macos-latest
+ shell: bash
+ - os: windows-latest
+ shell: bash
+ - os: windows-latest
+ shell: powershell
+
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+
+ steps:
+ # Checkout the npm/cli repo
+ - uses: actions/checkout@v2
+
+ # Installs the specific version of Node.js
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ # Run the installer script
+ - name: Install dependencies
+ run: |
+ node . install --ignore-scripts --no-audit
+ node . rebuild
+
+ # Run the smoke tests
+ - name: Run Smoke tests
+ run: node . run --ignore-scripts smoke-tests -- --no-check-coverage -t600 -Rbase -c
+ env:
+ DEPLOY_VERSION: testing
+
build:
strategy:
fail-fast: false