chore(main): release 18.2.0 (#454) #521
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: Node.js CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: package.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npm run eslint | |
| - name: Run Prettier | |
| run: npm run prettier | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| couchdb-version: [1.7, latest] | |
| services: | |
| couchdb: | |
| image: couchdb:${{ matrix.couchdb-version }} | |
| env: | |
| COUCHDB_USER: admin | |
| COUCHDB_PASSWORD: admin | |
| ports: | |
| - 127.0.0.1:5984:5984 | |
| ldap: | |
| image: ghcr.io/zakodium/ldap-with-users:1 | |
| ports: | |
| - 127.0.0.1:1389:389 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Setup test database | |
| run: node scripts/setup_database.mjs | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests | |
| run: npm run test-coverage | |
| - name: Send coverage report to Codecov | |
| if: ${{ matrix.node-version == '24.x' && matrix.couchdb-version == 'latest' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true |