Downgrade mime - they wont support require #257
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Run Tests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: testing | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [18, 20] | |
mongodb-version: [4.4] | |
python-version: [3.8] | |
redis-version: [6] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Use Node.js {{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Start MongoDB ${{ matrix.mongodb-version }} | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
- name: Start Redis ${{ matrix.redis-version }} | |
uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- name: Chrome | |
uses: browser-actions/setup-chrome@latest | |
- name: node version | |
run: node --version | |
- name: NPM install | |
run: npm install | |
- name: ESLint Check | |
run: npm run lint | |
- name: Mocha addon test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/addon | |
- name: Mocha bin test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/bin | |
- name: Mocha client test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/client | |
- name: Mocha common test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit ./test/common | |
- name: Mocha common/blob test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/common/blob | |
- name: Mocha common/core test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/common/core | |
- name: Mocha common/executor test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/common/executor | |
- name: Mocha common/storage test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/common/storage | |
- name: Mocha common/util test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/common/util | |
- name: Mocha config test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/config | |
- name: Mocha issue test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/issue | |
- name: Mocha plugin test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/plugin | |
- name: Mocha seeds test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/seeds | |
- name: Mocha server root test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit ./test/server | |
- name: Mocha server/api test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/server/api | |
- name: Mocha server/middleware test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/server/middleware | |
- name: Mocha server/storage test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/server/storage | |
- name: Mocha server/util test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/server/util | |
- name: Mocha server/webhooks test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/server/webhooks | |
- name: Mocha server/worker test | |
run: node ./node_modules/mocha/bin/mocha --timeout 10000 --exit --recursive ./test/server/worker |