mediamtx/.github/workflows/code_lint.yml
Alessandro Ros 9c6ba7e2c7
New authentication system (#1341) (#1992) (#2205) (#3081)
This is a new authentication system that covers all the features exposed by the server, including playback, API, metrics and PPROF, improves internal authentication by adding permissions, improves HTTP-based authentication by adding the ability to exclude certain actions from being authenticated, adds an additional method (JWT-based authentication).
2024-03-04 14:20:34 +01:00

47 lines
721 B
YAML

name: code_lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
golangci_lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- run: touch internal/servers/hls/hls.min.js
- uses: golangci/golangci-lint-action@v4
with:
version: v1.55.0
mod_tidy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v2
with:
go-version: "1.21"
- run: |
go mod tidy
git diff --exit-code
api_docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: make apidocs-lint