Skip to content

Commit

Permalink
chore: fix test & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Nov 12, 2024
1 parent 84c65f2 commit 767330e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test_and_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
steps:
- name: Code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '^1.23'
cache: false
- run: go get
- run: go install golang.org/x/tools/cmd/stringer
- run: go generate ./...
- run: go test -v -race ./...

Expand All @@ -32,15 +34,19 @@ jobs:
steps:
- name: Code
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v5
with:
cache: false
go-version: '^1.23'
cache: false
- run: go get
- run: go install golang.org/x/tools/cmd/stringer
- run: go generate ./...

- name: Go vet
run: go vet ./...

- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
43 changes: 43 additions & 0 deletions client/loginerror_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/oicq.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
tea "github.com/fumiama/gofastTEA"
)

// ref https://github.com/Mrs4s/MiraiGo/blob/54bdd873e3fed9fe1c944918924674dacec5ac76/client/entities.go#L18

type (
LoginError int

Expand Down

0 comments on commit 767330e

Please sign in to comment.