Files
patchworks/.github/workflows/lint-golang.yaml
T
Renovate Bot 804cbdd148
renovate/stability-days Updates have met minimum release age requirement
Lint Golang Files / Golang-Lint (pull_request) Successful in 1h45m14s
chore(deps): update dependency golangci/golangci-lint to v2.14.0
2026-09-30 00:07:57 +00:00

55 lines
1.2 KiB
YAML

---
name: Lint Golang Files
"on":
# Manual trigger.
"workflow_dispatch":
push:
branches:
- '*'
paths:
- 'src/**/*.go'
- '**/go.*'
pull_request:
branches:
- '*'
jobs:
golang-lint:
name: 'Golang-Lint'
runs-on: ubuntu-latest
steps:
- name: 'Check out the repository locally'
uses: actions/checkout@v7
with:
fetch-depth: 0
lfs: false
- uses: actions/setup-go@v7
with:
go-version: 1.27
- name: install Fyne deps for golang lint
run: |
#mv /etc/apt/sources.list.d/microsoft-prod.list \
# /etc/apt/sources.list.d/microsoft-prod.list.disabled
#until apt-get update; do
# echo -e "-----\napt-get update failed, retrying in 1s...\n-----"
# sleep 1s
#done
sudo apt-get update
sudo apt-get install -y \
libgl1-mesa-dev \
xorg-dev \
libwayland-dev \
libxkbcommon-dev \
wayland-protocols \
pkg-config
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.14.0