@@ -12,48 +12,43 @@ jobs:
1212 name : Main Process
1313 runs-on : ubuntu-latest
1414 env :
15- GO_VERSION : 1.19
16- GOLANGCI_LINT_VERSION : v1.50 .0
17- YAEGI_VERSION : v0.14.2
15+ GO_VERSION : 1.22
16+ GOLANGCI_LINT_VERSION : v2.4 .0
17+ YAEGI_VERSION : v0.16.1
1818 CGO_ENABLED : 0
1919 defaults :
2020 run :
2121 working-directory : ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
2222
2323 steps :
24-
25- # https://github.com/marketplace/actions/setup-go-environment
26- - name : Set up Go ${{ env.GO_VERSION }}
27- uses : actions/setup-go@v2
28- with :
29- go-version : ${{ env.GO_VERSION }}
30-
3124 # https://github.com/marketplace/actions/checkout
32- - name : Check out code
33- uses : actions/checkout@v2
25+ - name : Check Out The Repo
26+ uses : actions/checkout@v5.0.0
3427 with :
3528 path : go/src/github.com/${{ github.repository }}
3629 fetch-depth : 0
3730
38- # https://github.com/marketplace/actions/cache
39- - name : Cache Go modules
40- uses : actions/cache@v3
31+
32+ - name : Set up Go
33+ uses : actions/setup-go@v6.0.0
4134 with :
42- path : ${{ github.workspace }}/go/pkg/mod
43- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44- restore-keys : |
45- ${{ runner.os }}-go-
35+ go-version : ${{ env.GO_VERSION }}
36+
37+
38+ # - name: golangci-lint
39+ # uses: golangci/golangci-lint-action@v8.0.0
4640
47- # https://golangci-lint.run/usage/install#other-ci
4841 - name : Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
4942 run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
5043
44+
5145 - name : Install Yaegi ${{ env.YAEGI_VERSION }}
5246 run : curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $(go env GOPATH)/bin ${YAEGI_VERSION}
5347
5448 - name : Setup GOPATH
5549 run : go env -w GOPATH=${{ github.workspace }}/go
5650
51+
5752 - name : Check and get dependencies
5853 run : |
5954 go mod tidy
0 commit comments