4509f9314f
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | major | `ee0669b` -> `11bd719` | --- > [!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/checkout (actions/checkout)</summary> ### [`v4`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v422) [Compare Source](https://redirect.github.com/actions/checkout/compare/v3...v4) - `url-helper.ts` now leverages well-known environment variables by [@​jww3](https://redirect.github.com/jww3) in [https://github.com/actions/checkout/pull/1941](https://redirect.github.com/actions/checkout/pull/1941) - Expand unit test coverage for `isGhes` by [@​jww3](https://redirect.github.com/jww3) in [https://github.com/actions/checkout/pull/1946](https://redirect.github.com/actions/checkout/pull/1946) ### [`v3`](https://redirect.github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v360) [Compare Source](https://redirect.github.com/actions/checkout/compare/v2...v3) - [Fix: Mark test scripts with Bash'isms to be run via Bash](https://redirect.github.com/actions/checkout/pull/1377) - [Add option to fetch tags even if fetch-depth > 0](https://redirect.github.com/actions/checkout/pull/579) </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:eyJjcmVhdGVkSW5WZXIiOiIzOS44Mi45IiwidXBkYXRlZEluVmVyIjoiMzkuODIuOSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJyZW5vdmF0ZS9naXRodWItYWN0aW9uIiwicmVub3ZhdGUvZ2l0aHViLXJlbGVhc2UiLCJ0eXBlL21ham9yIl19-->
64 lines
1.5 KiB
YAML
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
|
|
- 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@3041bf56c941b39c61721a86cd11f3bb1338122a # 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
|