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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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