File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818# - On push to main branch
1919# - Manually via workflow_dispatch
2020#
21- # Test results are uploaded as artifacts and stored for 7 days.
2221# =======================================================================
2322
2423name : Node.js 12 Tests
@@ -50,19 +49,10 @@ jobs:
5049
5150 - name : Install dependencies
5251 run : |
53- # Remove incompatible Jest 30.x
54- yarn remove jest
55- # Install Jest 27.x which is compatible with Node.js 12
56- yarn add jest@27 --dev
52+ # Install specific Jest version that's compatible with Node.js 12
53+ yarn add jest@27.5.1 ts-jest@27.1.5 @types/jest@27.5.2 --dev
54+ # Install without considering yarn.lock to ensure our custom Jest version is actually used
55+ yarn install --no-lockfile
5756
5857 - name : Run unit tests
59- run : yarn test
60-
61- - name : Upload test results
62- if : always()
63- uses : actions/upload-artifact@v4
64- with :
65- name : node12-test-results
66- path : |
67- junit.xml
68- retention-days : 7
58+ run : yarn test
Original file line number Diff line number Diff line change 1818# - On push to main branch
1919# - Manually via workflow_dispatch
2020#
21- # Test results are uploaded as artifacts and stored for 7 days.
2221# =======================================================================
2322
2423name : Node.js 14 Tests
@@ -50,19 +49,10 @@ jobs:
5049
5150 - name : Install dependencies
5251 run : |
53- # Remove incompatible Jest 30.x
54- yarn remove jest
55- # Install Jest 29.x which is compatible with Node.js 14
56- yarn add jest@29 --dev
52+ # Install specific Jest version that's compatible with Node.js 14
53+ yarn add jest@29.5.0 ts-jest@29.1.0 @types/jest@29.5.0 --dev
54+ # Install without considering yarn.lock to ensure our custom Jest version is actually used
55+ yarn install --no-lockfile
5756
5857 - name : Run unit tests
59- run : yarn test
60-
61- - name : Upload test results
62- if : always()
63- uses : actions/upload-artifact@v4
64- with :
65- name : node14-test-results
66- path : |
67- junit.xml
68- retention-days : 7
58+ run : yarn test
Original file line number Diff line number Diff line change 1818# - On push to main branch
1919# - Manually via workflow_dispatch
2020#
21- # Test results are uploaded as artifacts and stored for 7 days.
2221# =======================================================================
2322
2423name : Node.js 16 Tests
5655 yarn install --no-lockfile
5756
5857 - name : Run unit tests
59- run : yarn test
60-
61- - name : Upload test results
62- if : always()
63- uses : actions/upload-artifact@v4
64- with :
65- name : node16-test-results
66- path : |
67- junit.xml
68- retention-days : 7
58+ run : yarn test
You can’t perform that action at this time.
0 commit comments