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
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Tests

on:
push:
branches: [ main, master, develop, claude/** ]
pull_request:
branches: [ main, master, develop ]
workflow_dispatch:

jobs:
test:
name: Run Tab Hero Tests
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Run tests
run: node test/run-tests.js --format=junit

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
Copy link

Copilot AI Dec 19, 2025

Choose a reason for hiding this comment

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

The GitHub Actions workflow will fail on Node.js 22.x because the publish-unit-test-result-action@v2 action only supports running on Linux with Node.js versions up to 20.x. Node.js 22.x requires v3 of this action or a different approach.

Consider either removing Node 22.x from the matrix or updating to a compatible version of the publish action.

Suggested change
uses: EnricoMi/publish-unit-test-result-action@v2
uses: EnricoMi/publish-unit-test-result-action@v3

Copilot uses AI. Check for mistakes.
if: always()
with:
files: |
test-results/junit.xml
check_name: Test Results (Node ${{ matrix.node-version }})

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-node-${{ matrix.node-version }}
path: test-results/
retention-days: 30
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules

# Test results
test-results/

# Uncomment the following line if you want to keep tab sets personal
# .vscode/tab-hero.json
Loading