-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (44 loc) · 1.08 KB
/
lint.yaml
File metadata and controls
50 lines (44 loc) · 1.08 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Lint
on:
push:
branches: [main]
paths:
- "Taskfile.dist.yaml"
- ".github/**"
- "docs/**"
- "client/**"
- "e2e/**"
- "server/**"
pull_request:
repository_dispatch:
types: ["Lint"]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install golangci-lint
run: task -p deps:install:golangci-lint
- name: Lint
run: task lint
notification:
needs:
- lint
name: Notification
if: always()
uses: werf/common-ci/.github/workflows/notification.yml@main
secrets:
loopNotificationGroup: ${{ secrets.LOOP_NOTIFICATION_GROUP }}
webhook: ${{ secrets.LOOP_NOTIFICATION_WEBHOOK }}
notificationChannel: ${{ secrets.LOOP_NOTIFICATION_CHANNEL }}