Check Regressions #7
This file contains 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: 'Check Regressions' | |
on: | |
workflow_dispatch: | |
inputs: | |
versions: | |
required: true | |
type: string | |
default: 'v18,v20,v21' | |
description: 'The Node.js Versions (the folder must exist)' | |
major-only: | |
required: true | |
type: boolean | |
default: false | |
description: 'Flag to check regression only between major versions' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js v${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'v20.x' | |
- name: NPM Install | |
run: npm install | |
- name: Run Checker | |
env: | |
MAJOR_ONLY: ${{ inputs.major-only }} | |
VERSIONS: ${{ inputs.versions }} | |
run: node scripts/check-regression.mjs |