Skip to content

Commit

Permalink
chore: upgrade ent and atlas (ent#554)
Browse files Browse the repository at this point in the history
* chore: upgrade ent and atlas

* fix: bump go version to 1.20

* .ci: upgrade golangci

* chore: codegen
  • Loading branch information
giautm authored and skeletal committed May 9, 2024
1 parent fe416a3 commit 6b87836
Show file tree
Hide file tree
Showing 408 changed files with 4,416 additions and 2,235 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.21
- name: Run linters
uses: golangci/golangci-lint-action@v3.2.0
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.48.0
version: v1.55.2
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.18', '1.19']
go: ['1.20', '1.21']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
go-version: '1.21'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
Expand Down
8 changes: 2 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
go: '1.19'
go: '1.21'
timeout: 10m

linters-settings:
Expand All @@ -25,26 +25,22 @@ linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- dupl
- errcheck
- gocritic
# - gofmt; Enable back when upgrading CI to Go 1.20.
# - gofmt; disabled because it conflicts with goheader
- goheader
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck
- whitespace

issues:
Expand Down
23 changes: 3 additions & 20 deletions entgql/internal/todo/ent/billproduct/where.go

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

6 changes: 5 additions & 1 deletion entgql/internal/todo/ent/billproduct_create.go

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

2 changes: 1 addition & 1 deletion entgql/internal/todo/ent/billproduct_delete.go

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

52 changes: 50 additions & 2 deletions entgql/internal/todo/ent/billproduct_update.go

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

23 changes: 3 additions & 20 deletions entgql/internal/todo/ent/category/where.go

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

6 changes: 5 additions & 1 deletion entgql/internal/todo/ent/category_create.go

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

2 changes: 1 addition & 1 deletion entgql/internal/todo/ent/category_delete.go

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

36 changes: 34 additions & 2 deletions entgql/internal/todo/ent/category_update.go

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

Loading

0 comments on commit 6b87836

Please sign in to comment.