Update golangci-lint to v1.56.2 and always install go #357
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | |
# SPDX-License-Identifier: MIT | |
name: Format | |
on: | |
pull_request: | |
jobs: | |
shfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Apply format | |
run: go run mvdan.cc/sh/v3/cmd/shfmt@latest -i 2 -ci -bn -l -w . | |
- name: Check diff | |
run: git diff --exit-code | |