Docker Dev Setup #22
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: 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 |