24e8b1df2780e9fdecf2a447d03afbd5803dbc9c

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Use prebuilt golangci-lint github action

Diff

  1diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
  2index 223d891ad41f478ad56d2c3cda877d7c012d2df5..9d2ee8390f7171d93d90d5346fd1e5ad5db9d566 100644
  3--- a/.github/workflows/ci.yaml
  4+++ b/.github/workflows/ci.yaml
  5@@ -32,16 +32,20 @@ jobs:
  6           go-version-file: "go.mod"
  7           cache: true
  8 
  9-      - name: Linter
 10-        run: make lint
 11+      - name: go vet
 12+        run: go vet ./...
 13 
 14-      - name: Install migrate CLI
 15-        run: make bin/migrate
 16+      - name: golangci-lint
 17+        uses: golangci/golangci-lint-action@v9
 18+        with:
 19+          version: v2.8.0
 20 
 21       - name: Tests
 22         env:
 23           DB_URI: postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable
 24-        run: make test
 25+        run: |-
 26+          make migrate
 27+          make test
 28 
 29       - name: Set up Docker Buildx
 30         uses: docker/setup-buildx-action@v3
 31diff --git a/Makefile b/Makefile
 32index 56dfd5cb2f82d83d889c070535ba68192988f78e..2f7a6e55713dacf42ff0b676078b1d3e51a4a2b0 100644
 33--- a/Makefile
 34+++ b/Makefile
 35@@ -5,7 +5,7 @@ DB_URI ?= postgres://ytrssil:ytrssil@localhost:5432/ytrssil?sslmode=disable
 36 bin/moq:
 37 	GOBIN=$(PWD)/bin go install github.com/matryer/moq@v0.6.0
 38 bin/golangci-lint:
 39-	GOBIN=$(PWD)/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.7.1
 40+	GOBIN=$(PWD)/bin go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0
 41 bin/migrate: bin
 42 	GOBIN=$(PWD)/bin go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.19.0
 43 bin/air: bin
 44diff --git a/pages/add_video_modal_templ.go b/pages/add_video_modal_templ.go
 45index ce7e8e36e38b7daa9dcdcf94bcb50a9c9e7b5b2f..143a29d628b7edb2cda881ebb54978415186b75b 100644
 46--- a/pages/add_video_modal_templ.go
 47+++ b/pages/add_video_modal_templ.go
 48@@ -1,6 +1,6 @@
 49 // Code generated by templ - DO NOT EDIT.
 50 
 51-// templ: version: v0.3.960
 52+// templ: version: v0.3.977
 53 
 54 package pages
 55 
 56diff --git a/pages/auth_templ.go b/pages/auth_templ.go
 57index bd1f3272bb1fd3e6ac57ed16b95f169a90902770..c762aa9cd26f02507a90be8f3915cb1aac17815b 100644
 58--- a/pages/auth_templ.go
 59+++ b/pages/auth_templ.go
 60@@ -1,6 +1,6 @@
 61 // Code generated by templ - DO NOT EDIT.
 62 
 63-// templ: version: v0.3.960
 64+// templ: version: v0.3.977
 65 package pages
 66 
 67 //lint:file-ignore SA4006 This context is only used if a nested component is present.
 68diff --git a/pages/channels_templ.go b/pages/channels_templ.go
 69index 22c615a6763f4d74a9f57f035aedbec28c292da2..4abab25a8881bb515f49625caea6bb193b985966 100644
 70--- a/pages/channels_templ.go
 71+++ b/pages/channels_templ.go
 72@@ -1,6 +1,6 @@
 73 // Code generated by templ - DO NOT EDIT.
 74 
 75-// templ: version: v0.3.960
 76+// templ: version: v0.3.977
 77 package pages
 78 
 79 //lint:file-ignore SA4006 This context is only used if a nested component is present.
 80diff --git a/pages/error_templ.go b/pages/error_templ.go
 81index 8661470749078b3e55083c47e1ef873071e81d90..f1751101a72ef6e968b229018cdddcea29d4eb6d 100644
 82--- a/pages/error_templ.go
 83+++ b/pages/error_templ.go
 84@@ -1,6 +1,6 @@
 85 // Code generated by templ - DO NOT EDIT.
 86 
 87-// templ: version: v0.3.960
 88+// templ: version: v0.3.977
 89 package pages
 90 
 91 //lint:file-ignore SA4006 This context is only used if a nested component is present.
 92diff --git a/pages/main_templ.go b/pages/main_templ.go
 93index a4935e49c7ca84555318ae7f66fa4d1c783988b0..3d769e7a62d5f65394cb57cc408d426f6ce92970 100644
 94--- a/pages/main_templ.go
 95+++ b/pages/main_templ.go
 96@@ -1,6 +1,6 @@
 97 // Code generated by templ - DO NOT EDIT.
 98 
 99-// templ: version: v0.3.960
100+// templ: version: v0.3.977
101 package pages
102 
103 //lint:file-ignore SA4006 This context is only used if a nested component is present.
104diff --git a/pages/navbar_templ.go b/pages/navbar_templ.go
105index 437fd9969ebfca95778fce178c55d478bb1ac751..d4d647bbb6e9f426062f5206556f4d2ce1981ba7 100644
106--- a/pages/navbar_templ.go
107+++ b/pages/navbar_templ.go
108@@ -1,6 +1,6 @@
109 // Code generated by templ - DO NOT EDIT.
110 
111-// templ: version: v0.3.960
112+// templ: version: v0.3.977
113 package pages
114 
115 //lint:file-ignore SA4006 This context is only used if a nested component is present.
116diff --git a/pages/new_videos_templ.go b/pages/new_videos_templ.go
117index de5e3c7a84e9098f88178eb8687f54e594325450..97553643a2473167ad6bf05e38c156f5a23bb975 100644
118--- a/pages/new_videos_templ.go
119+++ b/pages/new_videos_templ.go
120@@ -1,6 +1,6 @@
121 // Code generated by templ - DO NOT EDIT.
122 
123-// templ: version: v0.3.960
124+// templ: version: v0.3.977
125 package pages
126 
127 //lint:file-ignore SA4006 This context is only used if a nested component is present.
128diff --git a/pages/subscription_templ.go b/pages/subscription_templ.go
129index dc38f8bc977871275caea2b22425def7186960cb..a29790e084a6cdc8712bd92e9cc3bfe0c62ec4cb 100644
130--- a/pages/subscription_templ.go
131+++ b/pages/subscription_templ.go
132@@ -1,6 +1,6 @@
133 // Code generated by templ - DO NOT EDIT.
134 
135-// templ: version: v0.3.960
136+// templ: version: v0.3.977
137 package pages
138 
139 //lint:file-ignore SA4006 This context is only used if a nested component is present.
140diff --git a/pages/watched_videos_templ.go b/pages/watched_videos_templ.go
141index 322d8f923f7f9fdc3f23c392e650e47bb2148a6e..2ee5d23756749cf5ace107ed1f5168f6f81872d8 100644
142--- a/pages/watched_videos_templ.go
143+++ b/pages/watched_videos_templ.go
144@@ -1,6 +1,6 @@
145 // Code generated by templ - DO NOT EDIT.
146 
147-// templ: version: v0.3.960
148+// templ: version: v0.3.977
149 package pages
150 
151 //lint:file-ignore SA4006 This context is only used if a nested component is present.