2021-05-15 12:44:35 +02:00
|
|
|
name: golangci-lint
|
2022-02-01 11:53:24 +01:00
|
|
|
on: [pull_request]
|
2021-05-15 12:44:35 +02:00
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-08-18 18:22:15 +02:00
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2022-12-04 13:22:21 +01:00
|
|
|
go-version: 1.19.x
|
2022-03-20 17:36:35 +01:00
|
|
|
- name: Install dependencies
|
2022-12-06 10:11:57 +01:00
|
|
|
run: sudo apt update && sudo apt install -y -q libgtk-3-dev libayatana-appindicator3-dev libgl1-mesa-dev xorg-dev
|
2021-05-15 12:44:35 +02:00
|
|
|
- name: golangci-lint
|
2021-08-29 17:48:31 +02:00
|
|
|
uses: golangci/golangci-lint-action@v2
|
2022-04-15 17:30:12 +02:00
|
|
|
with:
|
2022-12-04 13:22:21 +01:00
|
|
|
args: --timeout=6m
|