Skip to content

Commit

Permalink
Merge pull request #1 from sailshq/bump-path-to-regexp
Browse files Browse the repository at this point in the history
bump `path-to-regexp` to `0.1.11`
  • Loading branch information
eashaw authored Sep 16, 2024
2 parents d04873d + afbaf6a commit d41b181
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 98 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
node_modules
18 changes: 18 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root: true
extends:
- plugin:markdown/recommended
plugins:
- markdown
overrides:
- files: '**/*.md'
processor: 'markdown/markdown'
rules:
eol-last: error
indent:
- error
- 2
- SwitchCase: 1
no-trailing-spaces: error
semi:
- error
- never
70 changes: 45 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
name: ci

on:
push:
branches:
- master
- '2.0'
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
- pull_request
- push

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name:
- Node.js 10.x
- Node.js 12.x
- Node.js 14.x
- Node.js 16.x
- Node.js 18.x
- Node.js 19.x
- Node.js 20.x
- Node.js 21.x
- Node.js 22.x

include:
- name: Node.js 18.x
node-version: "18"
- name: Node.js 10.x
node-version: "10.24"
npm-i: [email protected]

- name: Node.js 19.x
node-version: "19"
- name: Node.js 12.x
node-version: "12.22"
npm-i: [email protected]

- name: Node.js 20.x
node-version: "20"
- name: Node.js 14.x
node-version: "14.21"

- name: Node.js 21.x
node-version: "21"
- name: Node.js 16.x
node-version: "16.19"

- name: Node.js 22.x
node-version: "22"
- name: Node.js 18.x
node-version: "18.14"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Install Node.js ${{ matrix.node-version }}
shell: bash -eo pipefail -l {0}
run: |
nvm install --default ${{ matrix.node-version }}
if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
nvm install --alias=npm 0.10
nvm use ${{ matrix.node-version }}
sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
npm config set strict-ssl false
fi
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
- name: Configure npm
Expand All @@ -57,6 +57,26 @@ jobs:
npm config set shrinkwrap false
fi
- name: Remove npm module(s) ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
if: matrix.npm-rm != ''

- name: Install npm module(s) ${{ matrix.npm-i }}
run: npm install --save-dev ${{ matrix.npm-i }}
if: matrix.npm-i != ''

- name: Setup Node.js version-specific dependencies
shell: bash
run: |
# eslint for linting
# - remove on Node.js < 12
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
grep -E '^eslint(-|$)' | \
sort -r | \
xargs -n1 npm rm --silent --save-dev
fi
- name: Install Node.js dependencies
run: npm install

Expand Down
72 changes: 0 additions & 72 deletions .github/workflows/scorecard.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"debug": "2.6.9",
"methods": "~1.1.2",
"parseurl": "~1.3.3",
"path-to-regexp": "0.1.7",
"path-to-regexp": "^0.1.7",
"setprototypeof": "1.2.0",
"utils-merge": "1.0.1"
},
Expand Down

0 comments on commit d41b181

Please sign in to comment.