mediamtx/.github/workflows/code_lint.yml
Alessandro Ros 4f54ea8b7e
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
update actions/checkout (#3655)
2024-08-14 21:07:51 +02:00

44 lines
689 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@v4
- uses: actions/setup-go@v3
with:
go-version: "1.22"
- 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@v4
- uses: actions/setup-go@v2
with:
go-version: "1.22"
- run: make lint-mod-tidy
api_docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: make lint-apidocs