generated from habedi/template-go-project
-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (27 loc) · 810 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Run Linters
on:
workflow_dispatch: # Allow manual execution
push:
tags:
- 'v*' # Trigger on version tags
jobs:
lint:
runs-on: ubuntu-latest
steps:
# Checkout code from repository
- name: Checkout code
uses: actions/checkout@v4
# Set up Go environment
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
# Install golangci-lint
- name: Install dependencies
run: |
make install-deps
# Run linters
- name: Run linters
run: |
make lint
continue-on-error: false