mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-24 12:01:56 -08:00
add go-mod-tidy to the lint action
This commit is contained in:
parent
6b1643940e
commit
1df765edcd
1 changed files with 19 additions and 4 deletions
23
.github/workflows/lint.yml
vendored
23
.github/workflows/lint.yml
vendored
|
|
@ -2,13 +2,13 @@ name: lint
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: lint
|
||||
golangci-lint:
|
||||
name: golangci-lint
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
@ -18,3 +18,18 @@ jobs:
|
|||
- uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.33
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue