@@ -28,15 +28,15 @@ permissions:
2828jobs :
2929 fmt-go :
3030 name : fmt/go
31- runs-on : ubuntu-20.04
31+ runs-on : ubuntu-latest
3232 steps :
3333 - name : Checkout
34- uses : actions/checkout@v2
34+ uses : actions/checkout@v4
3535
3636 - name : Install Go
37- uses : actions/setup-go@v2
37+ uses : actions/setup-go@v5
3838 with :
39- go-version : " ^1.21.9 "
39+ go-version : " ^1.24.5 "
4040
4141 - name : Run make fmt/go
4242 run : make fmt/go
@@ -46,15 +46,15 @@ jobs:
4646
4747 fmt-prettier :
4848 name : fmt/prettier
49- runs-on : ubuntu-20.04
49+ runs-on : ubuntu-latest
5050 steps :
5151 - name : Checkout
52- uses : actions/checkout@v2
52+ uses : actions/checkout@v4
5353
5454 - name : Install Node.js
55- uses : actions/setup-node@v2
55+ uses : actions/setup-node@v4
5656 with :
57- node-version : " 18 "
57+ node-version : " 22 "
5858
5959 - name : Install prettier
6060 run : npm install --global prettier
@@ -67,20 +67,19 @@ jobs:
6767
6868 lint-go :
6969 name : lint/go
70- runs-on : ubuntu-20.04
70+ runs-on : ubuntu-latest
7171 steps :
7272 - name : Checkout
73- uses : actions/checkout@v2
73+ uses : actions/checkout@v4
7474
7575 - name : Install Go
76- uses : actions/setup-go@v2
76+ uses : actions/setup-go@v5
7777 with :
78- go-version : " ^1.21.9 "
78+ go-version : " ^1.24.5 "
7979
8080 - name : Install golangci-lint
8181 run : |
82- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
83- | sh -s -- -b $(go env GOPATH)/bin v1.57.2
82+ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
8483
8584 # Linting needs to be done on each build variation of GOOS.
8685 - name : Run make lint/go/linux
@@ -92,13 +91,21 @@ jobs:
9291
9392 test-go :
9493 name : " test/go"
95- runs-on : ubuntu-latest
94+ strategy :
95+ matrix :
96+ runs-on :
97+ - ubuntu-24.04
98+ - ubuntu-24.04-arm # arm64
99+ runs-on : ${{ matrix.runs-on }}
96100 timeout-minutes : 20
97101 steps :
98- - uses : actions/checkout@v3
99- - uses : actions/setup-go@v3
102+ - name : Checkout
103+ uses : actions/checkout@v4
104+
105+ - name : Install Go
106+ uses : actions/setup-go@v5
100107 with :
101- go-version : " ^1.21.9 "
108+ go-version : " ^1.24.5 "
102109
103110 - name : Echo Go Cache Paths
104111 id : go-cache-paths
@@ -107,13 +114,13 @@ jobs:
107114 echo "::set-output name=go-mod::$(go env GOMODCACHE)"
108115
109116 - name : Go Build Cache
110- uses : actions/cache@v3
117+ uses : actions/cache@v4
111118 with :
112119 path : ${{ steps.go-cache-paths.outputs.go-build }}
113120 key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
114121
115122 - name : Go Mod Cache
116- uses : actions/cache@v3
123+ uses : actions/cache@v4
117124 with :
118125 path : ${{ steps.go-cache-paths.outputs.go-mod }}
119126 key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -123,10 +130,10 @@ jobs:
123130
124131 lint-c :
125132 name : lint/c
126- runs-on : ubuntu-20.04
133+ runs-on : ubuntu-latest
127134 steps :
128135 - name : Checkout
129- uses : actions/checkout@v2
136+ uses : actions/checkout@v4
130137
131138 - name : Run make lint/c
132139 run : make lint/c
@@ -141,10 +148,10 @@ jobs:
141148
142149 lint-shellcheck :
143150 name : lint/shellcheck
144- runs-on : ubuntu-20.04
151+ runs-on : ubuntu-latest
145152 steps :
146153 - name : Checkout
147- uses : actions/checkout@v2
154+ uses : actions/checkout@v4
148155
149156 - name : Install shellcheck
150157 run : sudo apt install -y shellcheck
0 commit comments