Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin NPM, Update Node.js #652

Merged
merged 2 commits into from
Nov 25, 2021
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
12 changes: 8 additions & 4 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
node-version: [10, 12, 14, 16]
node-version: [10, 12, 14, 16, 17]
mongodb-version: [4.4]
fail-fast: false
steps:
Expand All @@ -36,8 +36,12 @@ jobs:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Update NPM (Node.js v10)
if: matrix.node-version == 10
run: npm install --global npm@7
- name: Update NPM
run: npm install --global npm
if: matrix.node-version != 10
run: npm install --global npm@8
- name: Run tests
run: npm test --ignore-scripts
- name: Publish coverage report to Coveralls
Expand Down Expand Up @@ -67,7 +71,7 @@ jobs:
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Verify code linting
Expand All @@ -83,7 +87,7 @@ jobs:
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Verify commit linting
Expand Down
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ node_js:
- 12
- 14
- 16
- 17
before_install: |
docker run --name=mongodb --publish=27017:27017 --detach mongo:4.4
until docker exec --tty mongodb mongo --port=27017 --eval='db.serverStatus()'
Expand All @@ -20,7 +21,13 @@ before_install: |
exit 2
fi
done
NODEJS_VERSION=$(node --version)
if [ 'v10' == ${NODEJS_VERSION%%.*} ]
then
npm install --global npm@7
else
npm install --global npm@8
fi
install:
- npm install --global npm
- npm ci --ignore-scripts
script: npm test --ignore-scripts