Files
charts/.github/workflows/clustertool.tests.yaml
TrueCharts Bot db73b0e03f chore(github-action): update actions/setup-go action v5 → v6 (#39248)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-go](https://redirect.github.com/actions/setup-go) |
action | major | `d35c59a` -> `4469467` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.

---

### Release Notes

<details>
<summary>actions/setup-go (actions/setup-go)</summary>

### [`v6`](https://redirect.github.com/actions/setup-go/compare/v5...v6)

[Compare
Source](https://redirect.github.com/actions/setup-go/compare/v5...v6)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjgyLjEwIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlL2NvbnRhaW5lciIsInJlbm92YXRlL2dpdGh1Yi1hY3Rpb24iLCJyZW5vdmF0ZS9naXRodWItcmVsZWFzZSIsInR5cGUvbWFqb3IiXX0=-->
2025-09-07 20:12:36 +02:00

64 lines
1.5 KiB
YAML

name: clustertool-go-tests
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
tags:
- "*"
paths:
- 'main.go'
- 'go.mod'
- 'go.sum'
- 'pkg/**'
- 'cmd/**'
- 'clustertool/**'
- ".github/workflows/clustertool.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:
check_changes:
runs-on: ubuntu-latest
outputs:
changes_detected: ${{ steps.filter.outputs.changed }}
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Filter paths
id: filter
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
with:
list-files: json
filters: |
changed:
- 'clustertool/**'
build:
runs-on: actions-runners
if: needs.check_changes.outputs.changes_detected == 'true'
steps:
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
with:
go-version: stable
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- run: |
cd ./clustertool
go build -o /usr/local/bin/clustertool
go test -v ./... -race -covermode=atomic
clustertool-dev