mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-03 21:23:29 +00:00
9c6ba7e2c7
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).
47 lines
721 B
YAML
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
|