Skip to content

Docker Dev Setup

Docker Dev Setup #22

Workflow file for this run

name: Test
# Trigger the workflow on pull requests
on: [ pull_request ]
jobs:
test:
# Run on multiple operating systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-24.04, windows-latest, macos-latest ]
node-version: [ 18, 20, 22 ]
fail-fast: false
steps:
# Checkout the repository
- uses: actions/checkout@v4
# Set up Node.js with the specified version
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: cd html && npm install
- name: Build project
run: cd html && npm run build
- name: Create data file
run: cd html && npx shx cp __tests__/data.dist.json __tests__/data.json
- name: Run Tests
run: cd html && npm run test