Add compatibility section to README #249
This file contains hidden or 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 | |
| on: [push] | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: NPM Audit on Node.js 20.x | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: 20.x | |
| - name: npm install and audit | |
| run: | | |
| npm ci | |
| npm audit --omit=dev | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| needs: [audit] | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: npm install, build, and test | |
| run: | | |
| npm ci | |
| npm run build | |
| npm test | |
| env: | |
| CI: true |