Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Unit Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout Repositoty
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm test

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
Copy link

Copilot AI Jan 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Node.js version should be explicitly specified using the "node-version" parameter in the setup-node action. This ensures consistent behavior across different runs and environments. Consider adding "node-version" to specify the Node.js version to use, for example "node-version: '18'" or "node-version: 'lts/*'" for the latest LTS version.

Suggested change
uses: actions/setup-node@v3
uses: actions/setup-node@v3
with:
node-version: 'lts/*'

Copilot uses AI. Check for mistakes.
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run build
22 changes: 21 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:all": "vitest",
"test:accessibility": "vitest accessibility --run",
"coverage": "vitest --coverage --run",
"test": "echo \"Navigate into an example and run the tests from there!\" && exit 1",
"test": "vitest",
"build": "tsc && vite build",
"preview": "vite preview"
},
Expand Down