npm audit fix, including fix for vulnerability in fast-xml-parser #302
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: test-and-lint | |
on: | |
push: | |
branches: [ master, modular ] | |
pull_request: | |
branches: [ master, modular ] | |
jobs: | |
build: | |
name: node.js | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# Support LTS versions based on https://nodejs.org/en/about/releases/ | |
node-version: ['18', '20', '21'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linter | |
run: npm run lint | |
- name: Run tests | |
run: npm test -- --timeout 10000 |