Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions/setup-go action to v5 #711

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check_go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go/go.mod"
cache: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gen_buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
- uses: bufbuild/buf-setup-action@v1
- uses: bufbuild/buf-lint-action@v1
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go/go.mod"
- run: |
Expand Down
16 changes: 8 additions & 8 deletions proto/spec/v1/userdata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ service UserDataService {
message User {
// ユーザID。他のIDはuint32であるが、ユーザIDのみJWTを使う都合上string。
string id = 1 [(validate.rules).string = {
min_len: 1,
max_len: 1024,
min_len: 1
max_len: 1024
}];
}
message Users {
Expand Down Expand Up @@ -67,7 +67,7 @@ message Horse {
message HorseDetail {
Horse data = 1 [(validate.rules).message.required = true];
string owner = 2 [(validate.rules).string = {
min_len: 2,
min_len: 2
max_len: 256
}];
message Image {
Expand All @@ -79,12 +79,12 @@ message HorseDetail {
}
// 拡張子
ImageType type = 1 [(validate.rules).enum = {
not_in: [0],
defined_only: true,
not_in: [0]
defined_only: true
}];
// 画像のデータ bytes(img)
bytes data = 2 [(validate.rules).bytes = {
min_len: 1,
min_len: 1
max_len: 1048576
}];
}
Expand Down Expand Up @@ -129,7 +129,7 @@ message RegisterHorseRequest {
string name = 1 [(validate.rules).string.pattern = "^\\p{Katakana}(\\p{Katakana}|ー){1,8}$"];
// 所有者名
string owner = 2 [(validate.rules).string = {
min_len: 2,
min_len: 2
max_len: 256
}];
// admin JWT
Expand Down Expand Up @@ -184,7 +184,7 @@ message RaceOrder {
// 順位。最も早くゴールしたときに1。
uint32 order = 1 [(validate.rules).uint32.gte = 1];
NoteType note = 2 [(validate.rules).enum = {
defined_only: true,
defined_only: true
not_in: [0]
}];
}
Expand Down