mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-11 03:57:01 +00:00
Bumps the actions group with 4 updates in the / directory: [helm/chart-testing-action](https://github.com/helm/chart-testing-action), [helm/kind-action](https://github.com/helm/kind-action), [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) and [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action). Updates `helm/chart-testing-action` from 2.7.0 to 2.8.0 - [Release notes](https://github.com/helm/chart-testing-action/releases) - [Commits](0d28d3144d...6ec842c01d) Updates `helm/kind-action` from 1.12.0 to 1.13.0 - [Release notes](https://github.com/helm/kind-action/releases) - [Commits](a1b0e39133...92086f6be0) Updates `docker/setup-qemu-action` from 3.6.0 to 3.7.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](29109295f8...c7c5346462) Updates `golangci/golangci-lint-action` from 8.0.0 to 9.0.0 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](4afd733a84...0a35821d5c) --- updated-dependencies: - dependency-name: helm/chart-testing-action dependency-version: 2.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: helm/kind-action dependency-version: 1.13.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: docker/setup-qemu-action dependency-version: 3.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: golangci/golangci-lint-action dependency-version: 9.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
89 lines
2.2 KiB
YAML
89 lines
2.2 KiB
YAML
name: Go
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- ".github/workflows/go.yaml"
|
|
- "**.go"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/go.yaml"
|
|
- "**.go"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
# This will make sure we only apply the concurrency limits on pull requests
|
|
# but not pushes to master branch by making the concurrency group name unique
|
|
# for pushes
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache: false
|
|
- name: fmt
|
|
run: go fmt ./...
|
|
- name: Check diff
|
|
run: git diff --exit-code
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache: false
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47
|
|
with:
|
|
only-new-issues: true
|
|
version: v2.5.0
|
|
|
|
generate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache: false
|
|
- name: Generate
|
|
run: make generate
|
|
- name: Check diff
|
|
run: git diff --exit-code
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: "go.mod"
|
|
- run: make manifests
|
|
- name: Check diff
|
|
run: git diff --exit-code
|
|
- name: Install kubebuilder
|
|
run: |
|
|
curl -D headers.txt -fsL "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-1.30.0-linux-amd64.tar.gz" -o kubebuilder-tools
|
|
echo "$(grep -i etag headers.txt -m 1 | cut -d'"' -f2) kubebuilder-tools" > sum
|
|
md5sum -c sum
|
|
tar -zvxf kubebuilder-tools
|
|
sudo mv kubebuilder /usr/local/
|
|
- name: Run go tests
|
|
run: |
|
|
go test -short `go list ./... | grep -v ./test_e2e_arc`
|