✨ legendary RE2JS ✨ #3
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: ci | |
on: | |
push: | |
pull_request: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js {{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
persist-credentials: false | |
- name: Install dependencies | |
run: npm install --ignore-scripts --only=dev | |
- name: Run lint | |
run: npm run lint | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: | |
- '0.10' | |
- '0.12' | |
- '4' | |
- '5' | |
- '6' | |
- '7' | |
- '8' | |
- '9' | |
- '10' | |
- '11' | |
- '12' | |
- '13' | |
- '14' | |
- '15' | |
- '16' | |
- '17' | |
- '18' | |
- '19' | |
- '20' | |
- '21' | |
- '22' | |
# Node.js release schedule: https://nodejs.org/en/about/releases/ | |
name: Node.js ${{ matrix.node-version }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install mocha | |
run: npm i [email protected] | |
- name: Output Node and NPM versions | |
run: | | |
echo "Node.js version: $(node -v)" | |
echo "NPM version: $(npm -v)" | |
- name: Run tests | |
shell: bash | |
run: | | |
npm test |