Add Mocha JS tests & fix ERB Regex #5
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
types: [opened, reopened, synchronize, ready_for_review] | |
jobs: | |
mocha: | |
name: Mocha | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [16, 17, 18, 19, 20, 21] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm install | |
env: | |
CI: true | |
- name: Run Mocha tests | |
run: npm test |