Update go-update.yml

This commit is contained in:
bjdgyc
2024-01-15 15:50:39 +08:00
committed by GitHub
parent 3408198d2d
commit 634c8c8145

View File

@@ -10,15 +10,15 @@ jobs:
- name: Setup Go 1.x.y
uses: actions/setup-go@main
with:
go-version: ^1.21
go-version: ^1.20
- name: Checkout codebase
uses: actions/checkout@main
- name: go
run: |
cd ./server
go mod tidy -compat=1.21
gofmt -w -r 'interface{} -> any' .
go mod tidy -compat=1.20
#gofmt -w -r 'interface{} -> any' .
go get -u
go mod download
go get -u