CI #6
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: '0 6 * * 1' # Weekly test to check new Node versions | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: | |
| - 22 # Uses _external fallback for SSL_CTX | |
| - 24 # 24.15+ exports GetSSLCtx | |
| - latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| check-latest: true | |
| - name: Node version | |
| run: node --version | |
| - name: OpenSSL version | |
| run: node -e "console.log('OpenSSL', process.versions.openssl)" | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm test |