Skip to content

Commit a3d82ef

Browse files
committed
fix CI
1 parent 12ede43 commit a3d82ef

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ trunk ]
66
pull_request:
77
branches: [ trunk ]
8+
branches-ignore: [ main ]
89

910
jobs:
1011
build:
@@ -26,6 +27,13 @@ jobs:
2627
run: |
2728
go test -v ./cmd/... -coverprofile=coverage.txt -covermode=atomic
2829
30+
- name: Run Go Analysis
31+
run: |
32+
go vet ./cmd/...
33+
go list -f '{{.ImportPath}}' ./cmd/... | xargs -I {} go list -e -f '{{if len .Errors}}{{.Errors}}{{end}}' {} | grep -v '^$'
34+
go fmt ./cmd/... -w
35+
go mod tidy
36+
2937
- name: Show Coverage
3038
run: |
3139
go tool cover -func=coverage.txt

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@ name: Release
22

33
on:
44
push:
5+
branches:
6+
- trunk
57
tags:
6-
- 'v*'
8+
- 'v*' # Active le workflow pour les tags commençant par v
9+
pull_request:
10+
branches:
11+
- trunk
12+
branches-ignore:
13+
- main
714

815
jobs:
916
release:

0 commit comments

Comments
 (0)