fix: also allow setting nested field to undefined re: #14205 #7895
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [4, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Upgrade Node <= 5 npm | |
run: npm install -g npm@3 | |
if: ${{ matrix.node <= 5 }} | |
- name: Upgrade Node 7 npm | |
run: npm install -g npm@6 | |
if: ${{ matrix.node == 7 }} | |
- run: npm install | |
- name: Setup | |
run: | | |
wget -q http://downloads.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1804-4.0.2.tgz | |
tar xf mongodb-linux-x86_64-ubuntu1804-4.0.2.tgz | |
mkdir -p ./data/db/27017 ./data/db/27000 | |
printf "\n--timeout 8000" >> ./test/mocha.opts | |
./mongodb-linux-x86_64-ubuntu1804-4.0.2/bin/mongod --fork --dbpath ./data/db/27017 --syslog --port 27017 | |
sleep 2 | |
mongod --version | |
mkdir ./test/typescript/node_modules | |
ln -s `pwd` ./test/typescript/node_modules/mongoose | |
echo `pwd`/mongodb-linux-x86_64-ubuntu1804-4.0.2/bin >> $GITHUB_PATH | |
- run: npm test | |
lint: | |
runs-on: ubuntu-latest | |
name: Linter | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- run: npm install | |
- name: Linter | |
run: npm run lint |