mediamtx/.github/workflows/lint.yml

36 lines
517 B
YAML
Raw Normal View History

2020-12-05 19:42:59 +00:00
name: lint
on:
push:
branches: [ main ]
2020-12-05 19:42:59 +00:00
pull_request:
branches: [ main ]
2020-12-05 19:42:59 +00:00
jobs:
2021-01-16 15:14:32 +00:00
golangci-lint:
name: golangci-lint
2020-12-05 19:42:59 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
2021-03-20 13:14:41 +00:00
version: v1.38
2021-01-16 15:14:32 +00:00
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