chore: add release-please config and manifest (#164) #446
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: Node.js CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x, 23.x] | |
mongo-version: ['5.0', '6.0', '7.0', '8.0'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Use MongoDB ${{ matrix.mongo-version }} | |
run: echo "MONGO_VERSION=${{ matrix.mongo-version }}" > .env | |
- name: Init docker | |
run: docker compose up -d | |
- name: Install dependencies | |
run: npm install | |
- name: Initialize MongoDB | |
run: node reset-dev.mjs | |
- name: Run tests | |
run: npm run test-only | |
- name: Send coverage report to Codecov | |
uses: codecov/codecov-action@v4 | |
- name: Teardown docker | |
run: docker compose down |