2021-05-15 12:44:35 +02:00
|
|
|
name: golangci-lint
|
2022-02-01 11:53:24 +01:00
|
|
|
on: [pull_request]
|
2023-04-13 17:00:01 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
|
|
|
|
cancel-in-progress: true
|
2021-05-15 12:44:35 +02:00
|
|
|
jobs:
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-04 17:03:44 +02:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2022-08-18 18:22:15 +02:00
|
|
|
- name: Install Go
|
2023-09-04 17:03:44 +02:00
|
|
|
uses: actions/setup-go@v4
|
2022-08-18 18:22:15 +02:00
|
|
|
with:
|
2023-04-27 17:50:45 +02:00
|
|
|
go-version: "1.20.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
|
2023-09-04 17:03:44 +02:00
|
|
|
uses: golangci/golangci-lint-action@v3
|