File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,18 +2,14 @@ name: CI
22on :
33 push :
44 branches : ["main", "devel"]
5- paths :
5+ paths : &paths
66 - ' go.mod'
77 - ' **.go'
88 - ' **.yml'
99 - ' **.yaml'
1010 pull_request :
1111 branches : ["main", "devel"]
12- paths :
13- - ' go.mod'
14- - ' **.go'
15- - ' **.yml'
16- - ' **.yaml'
12+ paths : *paths
1713
1814permissions :
1915 contents : read
2521 runs-on : ubuntu-latest
2622 steps :
2723 - uses : actions/checkout@v5
28- - uses : actions/setup-go@v6
2924 with :
3025 persist-credentials : false
26+ - uses : actions/setup-go@v6
27+ with :
3128 go-version-file : go.mod
3229 cache : true
3330 - run : go test -v ./...
3633 runs-on : ubuntu-latest
3734 steps :
3835 - uses : actions/checkout@v5
39- - uses : actions/setup-go@v6
4036 with :
4137 persist-credentials : false
38+ - uses : actions/setup-go@v6
39+ with :
4240 go-version-file : go.mod
4341 cache : true
4442
You can’t perform that action at this time.
0 commit comments