more CI tweaks

This commit is contained in:
Kjeld Schouten
2024-10-16 23:47:09 +02:00
parent 15f510701f
commit d92b3c1bdf
3 changed files with 35 additions and 25 deletions
@@ -1,4 +1,4 @@
name: golangci-lint name: Clustertool-go-lint
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
on: on:
@@ -7,15 +7,25 @@ on:
# - main # - main
# tags: # tags:
# - "*" # - "*"
# paths: # paths:
# - 'clustertool/**' # - 'main.go'
# - ".github/workflows/clsutertool.test.yaml" # - 'go.mod'
#pull_request: # - 'go.sum'
# branches: # - 'pkg/**'
# - main # - 'cmd/**'
# paths: # - 'clustertool/**'
# - 'clustertool/**' # - ".github/workflows/clsutertool.test.yaml"
# - ".github/workflows/clsutertool.test.yaml" pull_request:
branches:
- main
paths:
- 'main.go'
- 'go.mod'
- 'go.sum'
- 'pkg/**'
- 'cmd/**'
- 'clustertool/**'
- ".github/workflows/clsutertool.test.yaml"
permissions: permissions:
contents: read contents: read
jobs: jobs:
+1 -1
View File
@@ -1,4 +1,4 @@
name: goreleaser name: clustertool-go-release
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
on: on:
@@ -1,20 +1,20 @@
name: clustertool-test name: clustertool-go-tests
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
on: on:
push: # push:
branches: # branches:
- main # - main
tags: # tags:
- "*" # - "*"
paths: # paths:
- 'main.go' # - 'main.go'
- 'go.mod' # - 'go.mod'
- 'go.sum' # - 'go.sum'
- 'pkg/**' # - 'pkg/**'
- 'cmd/**' # - 'cmd/**'
- 'clustertool/**' # - 'clustertool/**'
- ".github/workflows/clsutertool.test.yaml" # - ".github/workflows/clsutertool.test.yaml"
pull_request: pull_request:
branches: branches:
- main - main