Skip to content

Commit 3365233

Browse files
committed
Merge branch 'master' into build-6.2.0
2 parents 5ed29ad + fee2513 commit 3365233

133 files changed

Lines changed: 52537 additions & 4441 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/bad-files-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Get specific changed files in dist
1717
id: changed-files-specific
18-
uses: tj-actions/changed-files@v17.3
18+
uses: tj-actions/changed-files@v41
1919
with:
2020
files: |
2121
dist

.github/workflows/lint-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Node.js
2020
uses: actions/setup-node@v1
2121
with:
22-
node-version: 14
22+
node-version: 18
2323

2424
- name: Install dependencies
2525
run: npm ci

.github/workflows/playwright.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [18, 20, 22]
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Install Playwright Browsers
22+
run: npx playwright install --with-deps
23+
- name: Build dist files
24+
run: npm run build
25+
- name: Run Playwright tests
26+
run: npx playwright test
27+
- uses: actions/upload-artifact@v4
28+
if: ${{ !cancelled() }}
29+
with:
30+
name: playwright-report-node-${{ matrix.node-version }}
31+
path: playwright-report/
32+
retention-days: 30

.github/workflows/unit-tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Unit Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [18, 20, 22]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- name: Install modules
20+
run: npm install
21+
- name: Run tests
22+
run: npm run test:unit

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33

44
node_modules/
55
examples/
6-
npm-debug.log
6+
npm-debug.log
7+
8+
# Playwright
9+
/test-results/
10+
/playwright-report/
11+
/blob-report/
12+
/playwright/.cache/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2024 Oli Folkerd
3+
Copyright (c) 2015-2025 Oli Folkerd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,22 @@ To access Tabulator directly from the UNPKG CDN servers, include the following t
8282
<link href="https://unpkg.com/tabulator-tables/dist/css/tabulator.min.css" rel="stylesheet">
8383
<script type="text/javascript" src="https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js"></script>
8484
```
85+
86+
Testing
87+
================================
88+
Tabulator comes with both Unit and End-to-End (E2E) tests. Here’s how you can run them:
89+
90+
```bash
91+
# Unit test
92+
npm run test:unit
93+
94+
# E2E test
95+
npm run build # Make sure to build the project first
96+
npx playwright test # Run the tests
97+
# or
98+
npm run test:e2e
99+
100+
# Run all tests
101+
npm run test
102+
```
103+

0 commit comments

Comments
 (0)