mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-12-24 11:51:18 +08:00
docs: add linter (#4945)
This commit is contained in:
16
.github/workflows/code_lint.yml
vendored
16
.github/workflows/code_lint.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
golangci_lint:
|
||||
go:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
with:
|
||||
version: v2.4.0
|
||||
|
||||
mod_tidy:
|
||||
go_mod:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
@@ -35,7 +35,15 @@ jobs:
|
||||
with:
|
||||
go-version: "1.24"
|
||||
|
||||
- run: make lint-mod-tidy
|
||||
- run: make lint-go-mod
|
||||
|
||||
docs:
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- run: make lint-docs
|
||||
|
||||
api_docs:
|
||||
runs-on: ubuntu-22.04
|
||||
@@ -43,4 +51,4 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- run: make lint-apidocs
|
||||
- run: make lint-api-docs
|
||||
|
||||
Reference in New Issue
Block a user