@@ -15,15 +15,17 @@ jobs:
1515 go-version : [1.22.x, 1.23.x]
1616 steps :
1717 - name : Install Go@v${{ matrix.go-version }}
18- uses : actions/setup-go@v2
18+ uses : actions/setup-go@v4
1919 with :
2020 go-version : ${{ matrix.go-version }}
2121 - name : Checkout code
22- uses : actions/checkout@v2
22+ uses : actions/checkout@v4
2323 # See https://github.com/actions/cache/blob/master/examples.md#go---modules
24- - uses : actions/cache@v2
24+ - uses : actions/cache@v3
2525 with :
26- path : ~/go/pkg/mod
26+ path : |
27+ ~/.cache/go-build
28+ ~/go/pkg/mod
2729 key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2830 restore-keys : |
2931 ${{ runner.os }}-go-
@@ -38,16 +40,16 @@ jobs:
3840 # See https://docs.github.com/en/actions/guides/building-and-testing-nodejs
3941 steps :
4042 - name : Install Node.js
41- uses : actions/setup-node@v1
43+ uses : actions/setup-node@v4
4244 with :
43- node-version : ' 12 .x'
45+ node-version : ' 20 .x'
4446 - name : Checkout code
45- uses : actions/checkout@v2
47+ uses : actions/checkout@v4
4648 # See https://github.com/actions/cache/blob/master/examples.md#node---yarn
4749 - name : Get yarn cache directory path
4850 id : yarn-cache-dir-path
49- run : echo "::set-output name= dir:: $(yarn cache dir)"
50- - uses : actions/cache@v2
51+ run : echo "dir= $(yarn cache dir)" >> $GITHUB_OUTPUT
52+ - uses : actions/cache@v3
5153 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
5254 with :
5355 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
0 commit comments