Skip to content

Lint

Lint #265

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 0 * * 1"
jobs:
lint-commit-message:
name: Metadata
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout .goassets
uses: actions/checkout@v3
with:
repository: pion/.goassets
path: ${{ github.workspace }}/.github/.goassets
ref: ${{ inputs.goassets-ref }}
- name: Commit Message
run: .github/.goassets/scripts/lint-commit-message.sh
- name: File names
run: .github/.goassets/scripts/lint-filename.sh
- name: Logging messages should not have trailing newlines
run: .github/.goassets/scripts/lint-no-trailing-newline-in-log-messages.sh
- name: Go version in go.mod
run: .github/.goassets/scripts/lint-go-mod-version.sh
lint-go:
name: Go
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Update packages
run: sudo apt-get update
- name: Install GStreamer
run: |
sudo apt-get purge -y libunwind-14-dev
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
- name: Build data-channels
run: cd c-data-channels && make
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2