Skip to content

Commit 3583640

Browse files
committed
improve github workflow actions
1 parent aa8593c commit 3583640

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/go.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ on:
33
push:
44
branches: ["main", "devel"]
55
paths:
6+
- 'go.mod'
67
- '**.go'
78
- '**.yml'
89
- '**.yaml'
910
pull_request:
1011
branches: ["main", "devel"]
12+
paths:
13+
- 'go.mod'
14+
- '**.go'
15+
- '**.yml'
16+
- '**.yaml'
1117

1218
permissions:
1319
contents: read
@@ -21,7 +27,8 @@ jobs:
2127
- uses: actions/checkout@v5
2228
- uses: actions/setup-go@v6
2329
with:
24-
go-version: stable
30+
persist-credentials: false
31+
go-version-file: go.mod
2532
cache: true
2633
- run: go test -v ./...
2734

@@ -31,7 +38,8 @@ jobs:
3138
- uses: actions/checkout@v5
3239
- uses: actions/setup-go@v6
3340
with:
34-
go-version: stable
41+
persist-credentials: false
42+
go-version-file: go.mod
3543
cache: true
3644

3745
- name: golangci-lint

internal/grammar/grammar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// package grammar defines patterns and rules for IPAM domain specific language.
1+
// Package grammar defines patterns and rules for IPAM domain specific language.
22
package grammar
33

44
import (

0 commit comments

Comments
 (0)