File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
120name : Hourly Tests
221
322on :
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'
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'
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 : |
Original file line number Diff line number Diff line change 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+
124name : Node.js 16 Tests
225
326on :
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 : |
You can’t perform that action at this time.
0 commit comments