Fixed mode three, removed unneccessary comments and slight logic changes #24
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 | |
on: [push, pull_request] | |
env: | |
HUSKY: 0 | |
jobs: | |
test: | |
name: Build, lint, and test on Node.js ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Build packages | |
run: npm run build | |
- name: Run tests | |
run: npm run test -- --ci --coverage --maxWorkers=2 | |
env: | |
NODE_OPTIONS: "--max-old-space-size=4096" # Increase heap size for jest |