Skip to content

Commit f1246ca

Browse files
committed
define file types to run on
1 parent d655e18 commit f1246ca

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: Go
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
paths:
5+
- "**.go"
6+
- "go.mod"
7+
- "go.sum"
8+
pull_request:
9+
workflow_dispatch:
310
jobs:
411
build:
512
name: Build

.github/workflows/golangci-lint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: golangci-lint
2-
on: [push, pull_request, workflow_dispatch]
2+
on:
3+
push:
4+
paths:
5+
- "**.go"
6+
- "go.mod"
7+
- "go.sum"
8+
pull_request:
9+
workflow_dispatch:
310
permissions:
411
contents: read
512
pull-requests: read

0 commit comments

Comments
 (0)