Skip to content

Check machine status and log details if it is not running #9511

Check machine status and log details if it is not running

Check machine status and log details if it is not running #9511

Workflow file for this run

name: ci-go
on:
push:
tags:
- v*
branches:
- master
pull_request:
permissions:
contents: read
jobs:
vendor-check:
runs-on: ubuntu-latest
container:
image: registry.access.redhat.com/ubi8/go-toolset:1.21.13-1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add GOBIN to PATH
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- run: |
make go-verify
hack/ci-utils/isClean.sh
generate-check:
runs-on: ubuntu-latest
container:
image: registry.access.redhat.com/ubi8/go-toolset:1.21.13-1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Add GOBIN to PATH
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Run make generate
run: |
make generate
hack/ci-utils/isClean.sh
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
args: -v --timeout 15m
validate-go:
name: validate-go
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: make validate-go-action