Skip to content

v2.148.0

v2.148.0 #1209

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
env:
COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
COVERALLS_GIT_BRANCH: "${{ github.ref }}"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_on_windows:
runs-on: windows-latest
strategy:
matrix:
node-version: [20.x ]
include:
- node-version: 20.x
SECURITY_REVERT_CVE_2023_46809: "--security-revert=CVE-2023-46809"
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store
- run: npm install -g pnpm@9
- run: pnpm run consistency
- run: pnpm recursive install --no-frozen-lockfile
- run: pnpm run build
- run: pnpm run pretest
- run: pnpm run test:win
env:
SECURITY_REVERT_CVE_2023_46809: ${{matrix.SECURITY_REVERT_CVE_2023_46809}}
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x, 20.x, 22.x ]
include:
- node-version: 18.x
SECURITY_REVERT_CVE_2023_46809: "--security-revert=CVE-2023-46809"
- node-version: 20.x
SECURITY_REVERT_CVE_2023_46809: "--security-revert=CVE-2023-46809"
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store
- run: npm install -g pnpm@9
- run: pnpm recursive install --no-frozen-lockfile
- run: pnpm run build
- run: hostname
- run: openssl version
- run: pnpm run pretest
- run: pnpm test
env:
SECURITY_REVERT_CVE_2023_46809: ${{matrix.SECURITY_REVERT_CVE_2023_46809}}
legacy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g pnpm@7
# remove pnpm-lock.yaml to avoid conflicts
- run: rm pnpm-lock.yaml
# also change the required version in package.json
- run: "sed -i 's/\"pnpm\": \".*\"/\"pnpm\": \">=7.0.0\"/' package.json"
- run: grep pnpm package.json
- run: pnpm recursive install --no-frozen-lockfile
- run: pnpm run build
- run: hostname
- run: openssl version
- run: pnpm run pretest
- run: pnpm test
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
include:
- node-version: 20.x
SECURITY_REVERT_CVE_2023_46809: "--security-revert=CVE-2023-46809"
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store
- run: npm install -g nyc@15 istanbul coveralls codecov
# - run: npm install -g codeclimate-test-reporter
- run: npm install -g pnpm@9
- run: pnpm recursive install --no-frozen-lockfile
- run: pnpm run build
- run: hostname
- run: openssl version
- run: pnpm run pretest
env:
SECURITY_REVERT_CVE_2023_46809: ${{ matrix.SECURITY_REVERT_CVE_2023_46809 }}
- run: make test-cov
env:
SECURITY_REVERT_CVE_2023_46809: ${{ matrix.SECURITY_REVERT_CVE_2023_46809 }}
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}