Skip to content

fix: set legacy ssl options for node >= v18 #23

fix: set legacy ssl options for node >= v18

fix: set legacy ssl options for node >= v18 #23

Workflow file for this run

name: Plugin Test Build
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
security-events: write
actions: read
contents: read
jobs:
test-build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["16", "18", "20"]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: npm install
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Run lint
run: npm run lint
- name: Test compile
run: |
# Running test
if [[ "$(node --version)" == "v18"* || "$(node --version)" == "v20"* ]]; then
export NODE_OPTIONS=--openssl-legacy-provider
fi
npm run test-compile