Skip to content

Commit

Permalink
chore: upgrade ent and atlas (#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 Nov 11, 2023
1 parent 58da6fd commit 0e1d9a2
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 0e1d9a2

Please sign in to comment.