mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-20 05:40:22 +00:00
36 lines
517 B
YAML
36 lines
517 B
YAML
name: lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
golangci-lint:
|
|
name: golangci-lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: v1.38
|
|
|
|
go-mod-tidy:
|
|
name: go-mod-tidy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
- run: |
|
|
go mod download
|
|
go mod tidy
|
|
git diff --exit-code
|