integrate clustertool sourcecode

This commit is contained in:
Kjeld Schouten
2024-10-16 13:56:25 +02:00
parent bc2a642e7a
commit 6365c6205f
265 changed files with 24073 additions and 45 deletions
@@ -0,0 +1,34 @@
name: golangci-lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
# push:
# branches:
# - main
# tags:
# - "*"
# paths:
# - 'clustertool/**'
# - ".github/workflows/clsutertool.test.yaml"
#pull_request:
# branches:
# - main
# paths:
# - 'clustertool/**'
# - ".github/workflows/clsutertool.test.yaml"
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: actions-runner-large
steps:
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: stable
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: latest
args: --timeout 3m0s
@@ -0,0 +1,27 @@
name: goreleaser
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
tags:
- "*"
paths:
- 'clustertool/**'
jobs:
goreleaser:
runs-on: actions-runner-large
steps:
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: stable
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
fetch-depth: 0
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:
args: release --clean
distribution: goreleaser # or 'goreleaser-pro'
version: "~> v2" # or 'latest', 'nightly', semver
env:
GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"
+43
View File
@@ -0,0 +1,43 @@
name: clustertool-test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
branches:
- main
tags:
- "*"
paths:
- 'main.go'
- 'go.mod'
- 'go.sum'
- 'pkg/**'
- 'cmd/**'
- 'clustertool/**'
- ".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:
contents: read
jobs:
build:
runs-on: actions-runner-large
steps:
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: stable
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- run: |
cd ./clustertool
go build -o /usr/local/bin/clustertool
go test -v ./... -race -covermode=atomic
clustertool-dev