chore: verify we only encounter expected MongoDB server warnings MONGOSH-2988 #1649
This file contains hidden or 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: "Run Smoke Tests" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| smoke-tests: | |
| name: "OS: ${{ matrix.runner }}, node@${{ matrix.node }}" | |
| strategy: | |
| matrix: | |
| runner: [ubuntu, macos, windows] | |
| node: [20.x, 22.x, 24.x] | |
| fail-fast: false | |
| runs-on: ${{ matrix.runner }}-latest | |
| timeout-minutes: 30 # Installing dependencies on windows can take a while | |
| env: | |
| npm_config_loglevel: verbose | |
| npm_config_foreground_scripts: "true" | |
| PUPPETEER_SKIP_DOWNLOAD: "true" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| check-latest: true | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run smoke tests | |
| run: npx mongodb-runner -- exec -- sh -c 'env MONGOSH_SMOKE_TEST_SERVER=$MONGODB_URI npm run test-smoke' |