Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm install --ignore-scripts --include=dev

- name: Run lint
run: npm run lint

performance:
name: Run performance test
strategy:
Expand Down Expand Up @@ -93,19 +111,22 @@ jobs:
- node-version: "5"
npm-i: "[email protected] [email protected]"
# fixes https://github.com/npm/cli/issues/681
npm-version: "npm@3.10.10"
npm-version: npm@2.15.11
npm-rm: 'iconv'

- node-version: "6"
npm-i: "[email protected] [email protected]"
npm-version: [email protected]
npm-rm: 'iconv'

- node-version: "7"
npm-i: "[email protected] [email protected]"
npm-version: [email protected]
npm-rm: 'iconv'

- node-version: "8"
npm-i: "[email protected] [email protected]"
npm-version: [email protected]
npm-rm: 'iconv'

- node-version: "9"
Expand Down Expand Up @@ -155,7 +176,7 @@ jobs:
shell: bash

- name: Remove npm module(s) ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }} neostandard @stylistic/eslint-plugin-js @stylistic/eslint-plugin eslint
if: matrix.npm-rm != ''

- name: Install Node version specific dev deps
Expand Down Expand Up @@ -226,7 +247,10 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}


- name: Remove npm module(s) iconv, eslint, neostandard, @stylistic/eslint-plugin-js, @stylistic/eslint-plugin
run: npm rm --silent --save-dev iconv neostandard @stylistic/eslint-plugin-js @stylistic/eslint-plugin eslint

- name: Webpack test
shell: bash
run: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/iojs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,15 @@ jobs:
run: |
npm config set loglevel error
npm config set shrinkwrap false

- name: Remove npm module(s) ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }}
run: npm rm --silent --save-dev ${{ matrix.npm-rm }} neostandard @stylistic/eslint-plugin-js @stylistic/eslint-plugin eslint
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: Remove non-test dependencies
run: npm rm --silent --save-dev connect-redis

- name: Install Node.js dependencies
run: npm install

Expand Down
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ wiki
coverage
.github
.idea
performance
performance
.nyc_output
eslint.config.js
*.tgz
Loading
Loading