Skip to content

Support Node 6

Support Node 6 #16

Workflow file for this run

name: Run tests
on:
workflow_dispatch:
pull_request:
branches: [ main ]
env:
package_dir: "/"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
test-matrix:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [6, 8, 10, 12, 14, 16, 18, 20, 22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Run tests
run: |
NODE_MAJOR=$(node -p "process.versions.node.split('.')[0]")
echo "Running on Node $NODE_MAJOR"
if [ "$NODE_MAJOR" -lt 18 ]; then
echo "Running legacy smoke test..."
npm run test:legacy-test
else
echo "Running full test suite..."
npm ci
npm run test:jasmine
npm run test:jasmine-browser
fi