@@ -22,35 +22,26 @@ jobs:
2222 strategy :
2323 matrix :
2424 os : [ubuntu-latest, macos-latest, windows-latest]
25- node-version : [18.x, 20.x, 22.x]
25+ node-version : [18.x, 20.x, 22.x, 24.x ]
2626
2727 steps :
28-
29- - name : Echo env variables
30- run : |
31- echo ref: ${{ github.event.client_payload.ref || github.ref }}
32- echo sha: ${{ github.event.client_payload.sha || github.sha }}
33- echo head ref: ${{ github.event.client_payload.head_ref || github.head_ref }}
34- echo base ref: ${{ github.event.client_payload.base_ref || github.base_ref }}
35- echo action: ${{ github.action }}
36- echo event: ${{ github.event_name }}
37-
38- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v5
3929 name : Checkout
4030 with :
4131 ref : ${{ github.event.client_payload.ref || github.ref }}
4232
4333 - name : Use Node.js ${{ matrix.node-version }}
44- uses : actions/setup-node@v2
34+ uses : actions/setup-node@v6
4535 with :
4636 node-version : ${{ matrix.node-version }}
4737
4838 - name : Get yarn cache directory
4939 id : yarn-cache-dir
40+ shell : bash
5041 run : |
51- echo "::set-output name= dir:: $(yarn cache dir)"
42+ echo "dir= $(yarn cache dir)" >> $GITHUB_OUTPUT
5243
53- - uses : actions/cache@v2
44+ - uses : actions/cache@v4
5445 id : yarn-cache
5546 with :
5647 path : ${{ steps.yarn-cache-dir.outputs.dir }}
@@ -71,11 +62,14 @@ jobs:
7162
7263 - name : Run unit tests with coverage
7364 if : matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS && !github.event.pull_request.head.repo.fork
74- 75- env :
76- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
65+ run : yarn cover
66+
67+ - name : Upload coverage
68+ if : matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS
69+ uses : qltysh/qlty-action/coverage@v2
7770 with :
78- coverageCommand : yarn cover
71+ token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
72+ files : coverage/lcov.info
7973
8074 - name : Run unit tests
8175 if : " !(matrix.node-version == env.PRIMARY_NODE_VERSION && matrix.os == env.PRIMARY_OS)"
@@ -93,24 +87,25 @@ jobs:
9387 steps :
9488
9589 - name : Checkout
96- uses : actions/checkout@v2
90+ uses : actions/checkout@v5
9791
9892 - name : fetch
9993 run : |
10094 git fetch --prune --unshallow
10195
10296 - name : Use Node.js ${{ matrix.node-version }}
103- uses : actions/setup-node@v2
97+ uses : actions/setup-node@v6
10498 with :
10599 node-version : ${{ matrix.node-version }}
106100 registry-url : ${{ env.REGISTRY }}
107101
108102 - name : Get yarn cache directory
109103 id : yarn-cache-dir
104+ shell : bash
110105 run : |
111- echo "::set-output name= dir:: $(yarn cache dir)"
106+ echo "dir= $(yarn cache dir)" >> $GITHUB_OUTPUT
112107
113- - uses : actions/cache@v2
108+ - uses : actions/cache@v4
114109 id : yarn-cache
115110 with :
116111 path : ${{ steps.yarn-cache-dir.outputs.dir }}
0 commit comments