88
99 strategy :
1010 matrix :
11- node-version : [14 .x, 16 .x]
11+ node-version : [18 .x, 20 .x]
1212
1313 steps :
14- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4
1515
1616 - name : Use Node.js ${{ matrix.node-version }}
17- uses : actions/setup-node@v3
17+ uses : actions/setup-node@v4
1818 with :
1919 node-version : ${{ matrix.node-version }}
2020
@@ -28,10 +28,10 @@ jobs:
2828
2929 - name : Get yarn cache directory path
3030 id : yarn-cache-dir-path
31- run : echo "::set-output name= dir:: $(yarn cache dir)"
32-
33- - uses : actions/cache@v3
34- id : yarn-cache
31+ run : echo "dir= $(yarn cache dir)" >> $GITHUB_OUTPUT
32+
33+ - uses : actions/cache@v4
34+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3535 with :
3636 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
3737 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
4444 - name : Run test with coverage
4545 run : npm run coverage
4646
47- # Fixes problem with incorrect SF paths. See https://github.com/coverallsapp/github-action/issues/125
48- - name : Update lcov.info
49- run : |
50- sed -E "s/SF:(.+file:(.+))/SF:\2/g" ./coverage/lcov.info > coverage/lcov.new.info
51- mv ./coverage/lcov.new.info ./coverage/lcov.info
52-
5347 - name : Coveralls
54- uses : coverallsapp/github-action@master
55- with :
56- github-token : ${{ secrets.GITHUB_TOKEN }}
48+ uses : coverallsapp/github-action@v2
0 commit comments