File tree 4 files changed +27
-6
lines changed
4 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,30 @@ jobs:
57
57
go build -race -ldflags "-extldflags '-static'"
58
58
working-directory : ./
59
59
60
+ linter :
61
+ name : Go-Linter
62
+ runs-on : ubuntu-latest
63
+ needs : [ go-tests ]
64
+ steps :
65
+ - uses : actions/checkout@v3
66
+ - uses : actions/setup-go@v3
67
+ with :
68
+ go-version : ' ^1.16.5'
69
+
70
+ # gen a dummy config file
71
+ - run : touch dummy.yml
72
+
73
+ - name : golangci-lint
74
+ uses : golangci/golangci-lint-action@v3
75
+ with :
76
+ version : latest
77
+ args : --disable-all -c dummy.yml -E=gofumpt --max-same-issues=0 --timeout 5m --modules-download-mode=mod
78
+
60
79
release-and-push :
61
80
name : Release And Push
62
81
runs-on : ubuntu-latest
63
82
if : github.repository == 'casdoor/casdoor' && github.event_name == 'push'
64
- needs : [ frontend, backend ]
83
+ needs : [ frontend, backend, linter ]
65
84
steps :
66
85
- name : Checkout
67
86
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 31
31
- api
32
32
# skip-files:
33
33
# - ".*_test\\.go$"
34
- modules-download-mode : vendor
34
+ modules-download-mode : mod
35
35
# all available settings of specific linters
36
36
linters-settings :
37
37
lll :
Original file line number Diff line number Diff line change 11
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
+
14
15
package conf
15
16
16
17
import (
Original file line number Diff line number Diff line change @@ -269,10 +269,11 @@ func (c *ApiController) TokenLogout() {
269
269
// IntrospectToken
270
270
// @Title IntrospectToken
271
271
// @Description The introspection endpoint is an OAuth 2.0 endpoint that takes a
272
- // parameter representing an OAuth 2.0 token and returns a JSON document
273
- // representing the meta information surrounding the
274
- // token, including whether this token is currently active.
275
- // This endpoint only support Basic Authorization.
272
+ // parameter representing an OAuth 2.0 token and returns a JSON document
273
+ // representing the meta information surrounding the
274
+ // token, including whether this token is currently active.
275
+ // This endpoint only support Basic Authorization.
276
+ //
276
277
// @Param token formData string true "access_token's value or refresh_token's value"
277
278
// @Param token_type_hint formData string true "the token type access_token or refresh_token"
278
279
// @Success 200 {object} object.IntrospectionResponse The Response object
You can’t perform that action at this time.
0 commit comments