2.0.0 #147
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: "Build & Test" | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: "Reason" | |
required: true | |
concurrency: | |
group: build | |
jobs: | |
build: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
timeout-minutes: 5 | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- name: Install NPM dependencies | |
run: npm install --ignore-scripts | |
- name: Run linting | |
run: npm run lint | |
- name: Run tests | |
run: npm run test-ci | |
- name: Run NPM pack | |
run: npm pack |