1111 - ' **'
1212
1313env :
14- PRIMARY_NODE_VERSION : 18 .x
14+ PRIMARY_NODE_VERSION : 24 .x
1515 PRIMARY_OS : ubuntu-latest
1616 REGISTRY : https://registry.npmjs.org/
1717
2222 strategy :
2323 matrix :
2424 os : [ ubuntu-latest ]
25- node-version : [ 14 .x, 16 .x, 18 .x, 20 .x ]
25+ node-version : [ 18 .x, 20 .x, 22 .x, 24 .x ]
2626
2727 steps :
2828
5050 run : |
5151 echo "::set-output name=dir::$(yarn cache dir)"
5252
53- - uses : actions/cache@v2
53+ - uses : actions/cache@v4
5454 id : yarn-cache
5555 with :
5656 path : ${{ steps.yarn-cache-dir.outputs.dir }}
@@ -76,11 +76,14 @@ jobs:
7676
7777 - name : Run unit tests with coverage
7878 if : matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS
79- uses : paambaati/codeclimate-action@v2.7.5
80- env :
81- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
79+ run : yarn test:cover
80+
81+ - name : Upload coverage
82+ if : matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS
83+ uses : qltysh/qlty-action/coverage@v2
8284 with :
83- coverageCommand : yarn test:cover
85+ token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
86+ files : coverage/lcov.info
8487
8588 - name : Run unit tests
8689 if : " !(matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS)"
9295 strategy :
9396 matrix :
9497 os : [ ubuntu-latest ]
95- node-version : [ 18 .x ]
98+ node-version : [ 24 .x ]
9699 needs : [ test ]
97100 if : github.event_name == 'release' && github.event.action == 'published'
98101 steps :
@@ -115,7 +118,7 @@ jobs:
115118 run : |
116119 echo "::set-output name=dir::$(yarn cache dir)"
117120
118- - uses : actions/cache@v2
121+ - uses : actions/cache@v4
119122 id : yarn-cache
120123 with :
121124 path : ${{ steps.yarn-cache-dir.outputs.dir }}
0 commit comments