chore: bump actions/dependency-review-action from 4.0.0 to 4.3.2 #569
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests | |
name: "Lint" | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v3.5.0 | |
with: | |
go-version: "1.22" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- name: Lint | |
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0 | |
with: | |
version: v1.57.2 | |
args: --timeout 5m | |
test: | |
name: "Unit test" | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- name: Set up Go 1.22 | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: "1.22" | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 | |
- name: Install kubebuilder | |
run: | | |
curl -L -O "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${KUBEBUILDER_VERSION}/kubebuilder_$(go env GOOS)_$(go env GOARCH)" && \ | |
curl -L -O "https://dl.k8s.io/v${KUBERNETES_VERSION}/kubernetes-server-$(go env GOOS)-$(go env GOARCH).tar.gz" && \ | |
curl -L -O "https://dl.k8s.io/v${KUBERNETES_VERSION}/kubernetes-client-$(go env GOOS)-$(go env GOARCH).tar.gz" && \ | |
curl -L -O "https://github.com/etcd-io/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-$(go env GOOS)-$(go env GOARCH).tar.gz" && \ | |
tar -zxvf kubernetes-server-$(go env GOOS)-$(go env GOARCH).tar.gz && \ | |
tar -zxvf kubernetes-client-$(go env GOOS)-$(go env GOARCH).tar.gz && \ | |
tar -zxvf etcd-v${ETCD_VERSION}-$(go env GOOS)-$(go env GOARCH).tar.gz && \ | |
chmod +x kubebuilder_$(go env GOOS)_$(go env GOARCH) && \ | |
chmod +x kubernetes/server/bin/kube-apiserver && \ | |
chmod +x kubernetes/client/bin/kubectl && \ | |
chmod +x etcd-v${ETCD_VERSION}-$(go env GOOS)-$(go env GOARCH)/etcd && \ | |
sudo mkdir -p /usr/local/kubebuilder/bin && \ | |
sudo mv kubebuilder_$(go env GOOS)_$(go env GOARCH) /usr/local/kubebuilder/bin/kubebuilder && \ | |
sudo mv kubernetes/server/bin/kube-apiserver /usr/local/kubebuilder/bin/kube-apiserver && \ | |
sudo mv kubernetes/server/bin/kubectl /usr/local/kubebuilder/bin/kubectl && \ | |
sudo mv etcd-v${ETCD_VERSION}-$(go env GOOS)-$(go env GOARCH)/etcd /usr/local/kubebuilder/bin/etcd | |
env: | |
KUBEBUILDER_VERSION: 3.9.0 | |
KUBERNETES_VERSION: 1.26.1 | |
ETCD_VERSION: 3.5.7 | |
- name: Unit test | |
run: make test | |
- name: Codecov Upload | |
uses: codecov/codecov-action@6d798873df2b1b8e5846dba6fb86631229fbcb17 # v4.4.0 | |
with: | |
flags: unittests | |
file: ./cover.out | |
fail_ci_if_error: false |