golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
606 B
41 lines
606 B
name: lint |
|
|
|
on: |
|
push: |
|
branches: [ main ] |
|
pull_request: |
|
branches: [ main ] |
|
|
|
jobs: |
|
code: |
|
runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
- uses: actions/checkout@v2 |
|
|
|
- uses: golangci/golangci-lint-action@v2 |
|
with: |
|
version: v1.40 |
|
|
|
mod-tidy: |
|
runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
- uses: actions/checkout@v2 |
|
|
|
- uses: actions/setup-go@v2 |
|
with: |
|
go-version: "1.16" |
|
|
|
- run: | |
|
go mod download |
|
go mod tidy |
|
git diff --exit-code |
|
|
|
apidocs: |
|
runs-on: ubuntu-20.04 |
|
|
|
steps: |
|
- uses: actions/checkout@v2 |
|
|
|
- run: make apidocs-lint
|
|
|