Skip to content

Commit

Permalink
test mongodb package versions 4,5,6
Browse files Browse the repository at this point in the history
  • Loading branch information
morris committed Feb 11, 2024
1 parent 0bb547e commit c2e733d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ jobs:
strategy:
matrix:
node-version: ['18.x', '20.x']
mongo-version: ['5', '6', '7']
mongodb-version: ['5', '6', '7']
mongodb-package-version: ['4', '5', '6']
steps:
- uses: actions/checkout@v4
- run: MONGO_VERSION=${{ matrix.mongo-version }} docker-compose up -d
- run: MONGO_VERSION=${{ matrix.mongodb-version }} docker-compose up -d
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm run lint
- run: npm run format-check
- run: npm install mongodb@${{ matrix.mongodb-package-version }} -D
- run: npm run build
- run: npm test
env:
CI: true
- run: docker-compose down
if: always()
- run: npx codecov
if: matrix.node-version == '18.x' && matrix.mongo-version == '5'
if: matrix.node-version == '18.x' && matrix.mongodb-version == '5'

publish:
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit c2e733d

Please sign in to comment.