Skip to content

Commit d650e5f

Browse files
committed
test message
1 parent 9279e75 commit d650e5f

2 files changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/hourly-tests.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# =======================================================================
2+
# Hourly Tests Workflow
3+
# =======================================================================
4+
#
5+
# This workflow runs tests for the console-table-printer and simple-wcswidth
6+
# packages on multiple Node.js versions (18.x, 20.x, 22.x, 24.x).
7+
#
8+
# It performs:
9+
# - Unit tests on all supported Node.js versions
10+
# - E2E tests for the website using Playwright
11+
#
12+
# The workflow runs:
13+
# - Hourly (via cron)
14+
# - On push to main branch
15+
# - Manually via workflow_dispatch
16+
#
17+
# Test results are uploaded as artifacts and stored for 7 days.
18+
# =======================================================================
19+
120
name: Hourly Tests
221

322
on:
@@ -23,7 +42,7 @@ jobs:
2342
uses: actions/checkout@v3
2443

2544
- name: Setup Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
45+
uses: actions/setup-node@v4
2746
with:
2847
node-version: ${{ matrix.node-version }}
2948
cache: 'yarn'
@@ -44,7 +63,7 @@ jobs:
4463
uses: actions/checkout@v3
4564

4665
- name: Setup Node.js
47-
uses: actions/setup-node@v3
66+
uses: actions/setup-node@v4
4867
with:
4968
node-version: '20'
5069
cache: 'yarn'
@@ -60,7 +79,7 @@ jobs:
6079

6180
- name: Upload test results
6281
if: always()
63-
uses: actions/upload-artifact@v3
82+
uses: actions/upload-artifact@v4
6483
with:
6584
name: test-results
6685
path: |

.github/workflows/node16-tests.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# =======================================================================
2+
# Node.js 16 Compatibility Tests Workflow
3+
# =======================================================================
4+
#
5+
# This workflow specifically tests the compatibility of console-table-printer
6+
# and simple-wcswidth packages with Node.js 16.x.
7+
#
8+
# Since Jest 30.x is not compatible with Node.js 16.x, this workflow:
9+
# 1. Removes Jest 30.x
10+
# 2. Installs Jest 29.x which is compatible with Node.js 16
11+
# 3. Runs the unit tests
12+
#
13+
# This ensures that users on Node.js 16.x can still use these libraries
14+
# even though the latest testing tools may not support this version.
15+
#
16+
# The workflow runs:
17+
# - Hourly (via cron)
18+
# - On push to main branch
19+
# - Manually via workflow_dispatch
20+
#
21+
# Test results are uploaded as artifacts and stored for 7 days.
22+
# =======================================================================
23+
124
name: Node.js 16 Tests
225

326
on:
@@ -37,7 +60,7 @@ jobs:
3760

3861
- name: Upload test results
3962
if: always()
40-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
4164
with:
4265
name: node16-test-results
4366
path: |

0 commit comments

Comments
 (0)