Skip to content

Commit

Permalink
chore: drop Node.js 10 and add Node.js 16 (#4691)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed May 7, 2021
1 parent 6e33bac commit b25956f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 26 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['10', '12', '14']
node-version: ['12', '14', '16']
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-${{ matrix.node-version }}-npm-cache
- name: Install dependencies
run: npm install --silent
- name: Running benchmark
Expand All @@ -38,19 +33,14 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['10', '12', '14']
node-version: ['12', '14', '16']
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-${{ matrix.node-version }}-npm-cache
- name: Install dependencies
run: npm install --silent
- name: Running profiling
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@ jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: '12.x'
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
node-version: '14.x'
- name: Install Dependencies
run: npm install
- name: Lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ['10.x', '12.x', '14.x']
node-version: ['12.x', '14.x', '16.x']
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -19,15 +19,15 @@ jobs:
- name: Install Dependencies
run: npm install
- name: Test
run: npm run test
run: npm test -- --no-parallel
env:
CI: true
coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: ['12.x']
node-version: ['14.x']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"eslint": "eslint .",
"test": "mocha test/index.js",
"test-cov": "nyc --reporter=lcovonly npm run test -- --no-parallel",
"test-cov": "nyc --reporter=lcovonly npm test -- --no-parallel",
"lint-staged": "lint-staged"
},
"directories": {
Expand Down

0 comments on commit b25956f

Please sign in to comment.