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:
authorLuke Karrys <luke@lukekarrys.com>2022-11-09 03:34:01 +0300
committerLuke Karrys <luke@lukekarrys.com>2022-11-09 21:28:12 +0300
commitf36df466aab2481069fe6213671c60d2f8e8474e (patch)
tree00dfb27461f805116aa9cafb21b27ea3b1ad4060 /.github
parent6a15d8a3a5846b7b23559118e234eb074f84f480 (diff)
chore: move mock-registry to workspace
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-npmcli-mock-registry.yml94
-rw-r--r--.github/workflows/ci.yml2
2 files changed, 96 insertions, 0 deletions
diff --git a/.github/workflows/ci-npmcli-mock-registry.yml b/.github/workflows/ci-npmcli-mock-registry.yml
new file mode 100644
index 000000000..db394f789
--- /dev/null
+++ b/.github/workflows/ci-npmcli-mock-registry.yml
@@ -0,0 +1,94 @@
+# This file is automatically added by @npmcli/template-oss. Do not edit.
+
+name: CI - @npmcli/mock-registry
+
+on:
+ workflow_dispatch:
+ pull_request:
+ paths:
+ - mock-registry/**
+ push:
+ branches:
+ - main
+ - latest
+ paths:
+ - mock-registry/**
+ schedule:
+ # "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1
+ - cron: "0 9 * * 1"
+
+jobs:
+ lint:
+ name: Lint
+ if: github.repository_owner == 'npm'
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ shell: bash
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Setup Git User
+ run: |
+ git config --global user.email "npm-cli+bot@github.com"
+ git config --global user.name "npm CLI robot"
+ - name: Setup Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: 18.x
+ cache: npm
+ - name: Reset Deps
+ run: node . run resetdeps
+ - name: Lint
+ run: node . run lint --ignore-scripts -w @npmcli/mock-registry
+ - name: Post Lint
+ run: node . run postlint --ignore-scripts -w @npmcli/mock-registry
+
+ test:
+ name: Test - ${{ matrix.platform.name }} - ${{ matrix.node-version }}
+ if: github.repository_owner == 'npm'
+ strategy:
+ fail-fast: false
+ matrix:
+ platform:
+ - name: Linux
+ os: ubuntu-latest
+ shell: bash
+ - name: macOS
+ os: macos-latest
+ shell: bash
+ - name: Windows
+ os: windows-latest
+ shell: cmd
+ node-version:
+ - 14.17.0
+ - 14.x
+ - 16.13.0
+ - 16.x
+ - 18.0.0
+ - 18.x
+ runs-on: ${{ matrix.platform.os }}
+ defaults:
+ run:
+ shell: ${{ matrix.platform.shell }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Setup Git User
+ run: |
+ git config --global user.email "npm-cli+bot@github.com"
+ git config --global user.name "npm CLI robot"
+ - name: Setup Node
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: npm
+ - name: Reset Deps
+ run: node . run resetdeps
+ - name: Add Problem Matcher
+ run: echo "::add-matcher::.github/matchers/tap.json"
+ - name: Test
+ run: node . test --ignore-scripts -w @npmcli/mock-registry
+ - name: Check Git Status
+ if: matrix && matrix.platform.os != 'windows-latest'
+ run: node scripts/git-dirty.js
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f3268396f..639bf4a0c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -8,6 +8,7 @@ on:
paths-ignore:
- docs/**
- smoke-tests/**
+ - mock-registry/**
- workspaces/**
push:
branches:
@@ -16,6 +17,7 @@ on:
paths-ignore:
- docs/**
- smoke-tests/**
+ - mock-registry/**
- workspaces/**
schedule:
# "At 09:00 UTC (02:00 PT) on Monday" https://crontab.guru/#0_9_*_*_1